I'm working on a project and quiet new to java. I want to scan an image pixel by pixel for a certain color, i.e. cyan and then print the coordinates of that pixel color. The code runs, creates an output file but doesn't write anything to it. Can somebody please help me with it to find the errors. I also want to know how to read a .tiff file in java while using the same code.
He's already using the ImageIO class (to read a JPG image, in his code above). Unfortunately the JDK doesn't come with support for the TIFF format (the only formats that ImageIO can read without extra plug-ins are: JPG PNG BMP WBMP GIF) - see the API docs for the package javax.imageio.