creating an image from a pixel array
843806Dec 17 2007 — edited Dec 17 2007Hello,
I have read two images as pixel arrays. I am looping through these 2 arrays comparing pixel by pixel. I am also storing the pixels that are different, into a third array. I would like to create an image with this third image, in memory, and display it on the screen. This image will basically be a difference between the two images. Can some one please help me on how to create an image from a pixel array?
further, another question. This third array just contains the pixels that were different between the two images. It does not have coordinates of each pixel. So how will this picture be drawn? pixels will be there but how will I know where to draw which pixel. Sorry a bit confused. I havnt worked with java images.
Thanks