( begin auto-generated from PImage_loadPixels.xml ) Loads the pixel data for the image into its pixels[] array. This function must always be called before reading from or writing to pixels[] . renderers may or may not seem to require loadPixels() or updatePixels()<
()
| 436 | * @usage web_application |
| 437 | */ |
| 438 | public void loadPixels() { // ignore |
| 439 | if (pixels == null || pixels.length != pixelWidth*pixelHeight) { |
| 440 | pixels = new int[pixelWidth*pixelHeight]; |
| 441 | } |
| 442 | setLoaded(); |
| 443 | } |
| 444 | |
| 445 | |
| 446 | public void updatePixels() { // ignore |