hi guys! I'm planning to use java for the implementation of my research. In my program i need to read and render an image file pixel by pixel and i want to be able to manipulate every pixel, is this possible? how?
If the image is a GIF, JPEG, BMP or PNG then you can use the javax.imageio.ImageIO class to read and write it. (TIFF and some others are also possible after installing an extra library). That class will hand you a java.awt.image.BufferedImage object, from which you can obtain a WriteableRaster object through which pixels can be manipulated.
If the image is a GIF, JPEG, BMP or PNG then you can use the javax.imageio.ImageIO class to read and write it. (TIFF and some others are also possible after installing an extra library). That class will hand you a java.awt.image.BufferedImage object, from which you can obtain a WriteableRaster object through which pixels can be manipulated.
thank you.... what if i want to write my own image file format? i mean after reading a BMP, do some manipulation and then write it to a new file format my own image file format....
If the image is a GIF, JPEG, BMP or PNG then you can use the javax.imageio.ImageIO class to read and write it. (TIFF and some others are also possible after installing an extra library). That class will hand you a java.awt.image.BufferedImage object, from which you can obtain a WriteableRaster object through which pixels can be manipulated.
thank you.... what if i want to write my own image file format? i mean after reading a BMP, do some manipulation and then write it to a new file format my own image file format....
Would like us to just do your research project for you? ;) Take a look at the APIs Ulf suggested. It helps to ask more specific questions and less about things you can do a bit of research to find out for yourself.