We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › loadPixels(), updatePixels()
Page Index Toggle Pages: 1
loadPixels(), updatePixels() (Read 1266 times)
loadPixels(), updatePixels()
May 11th, 2005, 2:44am
 
I searched a lot why my changed pixels didn't show on the screen when i changed them in an image, until i thought that these functions would probably also be necessary for PImage as for the main window.

I understood the reference as that the loadPixels() and updatePixels() functions were only functions for the general window and not for all the PImages.
Some clearer info could do a lot (an example with a PImage).

Excuse me if this is a stupid suggestion, i'm not so 'in' java.
Re: loadPixels(), updatePixels()
Reply #1 - May 13th, 2005, 8:36am
 
loadPixels() and updatePixels() are only necessary when you are using the pixels[] array. the reference for pixels[] and PImage.pixels[] mentions this. if you find the other image functions such as PImage.filter() also need loadPixels() and updatePixels(), this is a bug. it would be a huge help if you could test these.
Page Index Toggle Pages: 1