I created a java applet that uses double buffering identical to http://www.realapplets.com/tutorial/DoubleBuffering.html
declaration. Everything works fine and the graphics appear perfectly in the applet.
Now, I have implemented a pixelGrabber from http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/PixelGrabber.html
and I use the pixelGrabber to read the pixel color values from the Image offscreen. However, I note that even though the pixelGrabber works and reads the image pixels, ever single pixel of offscreen is the RGB color of the background color, and not the rest of the graphics drawn on top of it, with a series of drawRect, drawOval, drawLine, etc. commands. The graphics appear in the applet perfectly though.
Any idea why the pixels read from offscreen are not conforming to the image drawn on the screen with
I suspect your timing of the PixelGrabber call is wrong. Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html