Reference loadPixels()

loadPixels()

Loads the current value of each pixel in the image into the img.pixels array.

img.loadPixels() must be called before reading or modifying pixel values.

Examples

Syntax

loadPixels()
loadPixels()
loadPixels()
loadPixels()

Parameters


Related References