Returns a pointer to the y nth line of pixels.
Only possible if the image has plain pixels.
What pixel format it points to, depends on the image type().
For each scanline pointer, you can _always_ READ ptr[0..pitchInBytes()] without memory error.
However, WRITING to this scanline doesn't guarantee anything by itself since the image
could be a sub-image, and the underlying buffer could be shared.
Returns a pointer to the y nth line of pixels. Only possible if the image has plain pixels. What pixel format it points to, depends on the image type().
For each scanline pointer, you can _always_ READ ptr[0..pitchInBytes()] without memory error. However, WRITING to this scanline doesn't guarantee anything by itself since the image could be a sub-image, and the underlying buffer could be shared.