getImagePixels

getImagePixels

Extract a pixel array from a loaded image. Draws the image into a canvas so it can read the pixels back.

Parameters:
Name Type Description
image Image The image to extract pixels from.
Returns:
CanvasPixelArray The pixels of the image.
Source: