参考 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.

示例

语法

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

参数


相关参考