Skip to Main Content

New to Java

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!

Using BufferedImage

807597Feb 23 2005 — edited Feb 23 2005
Hi all,

I'm fairly new to image processing in Java. I am attempting to open an image in a buffer (presumably I use BufferedImage somewhere), and from this image I want to be able to read all the pixels from it, and to view it.

Try as I might, I never manage to get anywhere. I have tried setting pixels, but can see nothing.
I'm using things such as...
BufferedImage bImg = new BufferedImage(etc);
Graphics g = bImg.createImage();
g.drawImage(image,0,0,null);
etc.

I am using eclipse developing tool. I'm not worried about fancy shamcy stuff such as panels, etc. At the moment I just want to be able to load an image into a buffer, read off the pixels, and display the image, and then go from there.

Any help would be very much gratefully received.

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2005
Added on Feb 23 2005
11 comments
133 views