Using BufferedImage
807597Feb 23 2005 — edited Feb 23 2005Hi 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!