Grx.Pixmap.new_from_context
function new_from_context(context: Grx.Context): Grx.Pixmap { // Gjs wrapper for grx_pixmap_new_from_context() }
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
- Returns
a new Grx.Pixmap or null if there was an error.