Converts a graphics context to a pixmap fill pattern.
This is useful when the pixmap can be created with graphics drawing operations. NOTE: the pixmap pattern and the original context share the drawing RAM, thus if the context is redrawn the fill pattern changes as well.
context |
the context |
a new Pixmap or null if there was an error. |