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 Supported Image Types Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Supported Image Types" Watch "Supported Image Types" New topic
Author

Supported Image Types

simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
Hi,

I have a JLayeredPane to which I add JLables containg images, effectively allowing images to be dragged around the screen.

So far I have only been able to get GIFs and JPEGs to display - is there anywhere I can abtain a list of which image types I can use?

Regards

Simon


Simon
Darin Niard
Ranch Hand

Joined: Jun 08, 2004
Posts: 118
Toolkit's createImage() currently only supports GIF, JPEG, and PNG (since 1.3).

The javax.imageio package can do pretty much anything as long as you have the appropriate plugins installed for it.

In JRE 1.5, javax.imageio supports JPG, PNG, BMP, WBMP, and GIF. Prior to 1.5, neither BMP format is supported, I believe.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Java Advanced Imaging (JAI) gives access to many different file types such as .TIF as well. You can find information and the download at http;//java.sun.com
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Supported Image Types
 
Similar Threads
hidden variables in an applet
Drawing Bitmaps
Need urgent help
Help with Android Application Design
retrieve multiple images from mysql