Loads the pixel data of the current display window into the pixels[] array. This function must always be called before reading from or writing to pixels[] . Subsequent changes to the display window will not be reflected in pixels until loadPixels() is called again. Ad
()
| 402 | * @usage web_application |
| 403 | */ |
| 404 | public void loadPixels() { // ignore |
| 405 | if (pixels == null || pixels.length != pixelWidth*pixelHeight) { |
| 406 | pixels = new int[pixelWidth*pixelHeight]; |
| 407 | } |
| 408 | setLoaded(); |
| 409 | } |
| 410 | |
| 411 | |
| 412 | public void updatePixels() { // ignore |