LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to display a tiff image in java? (https://www.linuxquestions.org/questions/programming-9/how-to-display-a-tiff-image-in-java-459042/)

MRMadhav 06-28-2006 03:07 AM

How to display a tiff image in java?
 
Hi,
I already have a program that can load png, jpg, bmp and gifs images but it cannot load images in the tiff format. I was wondering if there is a way to display the image in a java program. Any suggestions, examples or links will be greatly appreciated.

cupubboy 06-28-2006 04:46 AM

I'm not sure this helps .. but in the worst case scenario .. you could implement your own tiff file class(es)
Here are some words on the format
http://www.ee.cooper.edu/courses/cou...es/EE458/TIFF/

MRMadhav 06-30-2006 05:46 AM

Hi, Thanks for your link! But if there could be something already written in java for reading it would have been great. I may use the option given in the link but only if there is no other way! Thats way too complicated!

Guttorm 06-30-2006 07:06 AM

Hi

Sun has a library that can understand most TIFF files:
http://java.sun.com/products/java-me...api/index.html

Some older library, that could be simpler, i dont know:
http://www.lizardworks.com/java.html

Best regards,
Guttorm.

MRMadhav 07-02-2006 02:39 AM

Hey thanks for the links but the problem is that i am not able to use the JAI library as i don't know how to procede! Any simple example where a tiff is loaded would be great. I'll continue searching a bit. There is something else, if you could tell me how to scan an image from a scanner and save it in the image format i like through my java appl i would not have to load tiff images.


All times are GMT -5. The time now is 05:29 PM.