File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Displaying .TIF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Displaying .TIF" Watch "Displaying .TIF" New topic
Author

Displaying .TIF

Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
I don't know too much about Swing/AWT and I need to display and manipulate a .tif file. I just need to be able to zoom in and out (not user controlled), I can't seem to find anything in java that supports .tif.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
aghhhhhhhhhhhhhh I don't understand JAI *cry*
I would greatly appreciate a good tutorial if it exists.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Here's a section from Sun's tutorial on JAI about loading TIFF images.

If you want to look at the rest of the tutorial there's a "Contents" link at the top of the page in the link...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Yeah I've been looking at that and some demos and I seem to have gotten enough to do what I need. The biggest problem with that tutorial (and that's about the only one out there) is it's outdated, even the very first example uses the deprecated ScrollingImagePanel.
Also, if anyone ever happens to search the forums (as I did) for something like this there's an article on JAI at http://access1.sun.com/techarticles/ImagingApps/JImage.html
You can convert a PlanarImage to a BufferedImage and then go from there using the JFC.
[ August 04, 2003: Message edited by: Ken Blair ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying .TIF