The source image data to read from.
A rect defining the region to extract.
A buffer containing the RGBA pixel data of the region.
The source image data to read from.
The starting horizontal coordinate.
The starting vertical coordinate.
The width of the region to extract.
The height of the region to extract.
A buffer containing the RGBA pixel data of the region.
Extracts a specific rectangular region of pixels from a larger ImageDataLike source into a new Uint8ClampedArray.
This is a "read-only" operation that returns a copy of the pixel data.