Grx.Context.prototype.get_scanline
function get_scanline(x1: Number(gint), x2: Number(gint), y: Number(gint)): [return_value: Array(Grx.Color), n: Number(guint)] {
// Gjs wrapper for grx_context_get_scanline()
}
An efficient way to get pixels from a context. Important: the return value is only valid until the next Grx call!
Also see Grx.get_scanline for operating on the current context.
- x1
the starting X coordinate
- x2
the ending X coordinate
- y
the Y coordinate
- return_value
an array of color values from the scanned pixels or null if there was an error
- n
the length of the array