Function: cropRgba()
cropRgba(
rgba,width,__namedParameters):Uint8ClampedArray
Defined in: src/lib/messages/PatchSender/index.ts:49
Copy a box of RGBA pixels out of a whole image.
Parameters
rgba
Uint8ClampedArray
width
number
__namedParameters
Returns
Uint8ClampedArray
Example
cropRgba(imageData.data, imageData.width, [10, 10, 20, 20]); // 10 × 10 pixels