[Edit: This question was the result of an error in my code, which caused me to make an incorrect assumption about the way that the display worked.]
I am currently using get() and set() to detect specific pixel colours in an image and change them according to specific criteria. However, once a given pixel is changed on the display, the change is not reflected in the underlying PImage unless I first save a copy of the image. The issue is that my program requires many (many) iterations, and these saves slow it down considerably. In addition, while my linux-based pc can handle this (albeit slowly), after a certain amount of time my work pc (win 7-based) crashes processing. It seems that saving that many times that quickly just proves to be too much for it.
Is there any way to detect a pixel change in the display without saving the underlying image and reloading it?
1