Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

creating an image from a pixel array

843806Dec 17 2007 — edited Dec 17 2007
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2008
Added on Dec 17 2007
5 comments
128 views