Grx.Context.get_scanline
@accepts(Grx.Context, int, int, int, int) @returns([Grx.Color]) def get_scanline(self, x1, x2, y, n): # Python 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.
- self
the context
- x1
the starting X coordinate
- x2
the ending X coordinate
- y
the Y coordinate
- n
the length of the array
- Returns