Returns a slice to the y nth line of pixels, in the given layer.
scanline is a shortcut to index the first layer (layer index 0).
Only possible if the image has plain pixels.
What pixel format it points to, depends on the image type().
Horizontally: trailing pixels, gap bytes, and border pixels are NOT included in that scanline, which is
only the nominal image extent.
However, vertically it is valid to adress scanlines on top and bottom of an image that has a border.
It is also valid to call scanline() and scanptr() for images that have zero width, zero
height, and/or zero layer.
Returns a slice to the y nth line of pixels, in the given layer. scanline is a shortcut to index the first layer (layer index 0). Only possible if the image has plain pixels. What pixel format it points to, depends on the image type().
Horizontally: trailing pixels, gap bytes, and border pixels are NOT included in that scanline, which is only the nominal image extent.
However, vertically it is valid to adress scanlines on top and bottom of an image that has a border. It is also valid to call scanline() and scanptr() for images that have zero width, zero height, and/or zero layer.