|| | |||Browse by category|
Can I read TIFF files with JViews? Which graphic formats can I use?
JViews relies on the Java capabilities to read different graphic formats. As by now, TIFF format is not directly supported by the
java.awt.Toolkit class; only GIF, PNG, and JPG formats are supported (you can read about it here: http://java.sun.com/javase/7/docs/api/java/awt/Toolkit.html#getImage(java.lang.String)).
However, there are classes apart from those bundled in the JDK that allow TIFF images to be read and build a
java.awt.Image object with which an
ilog.views.graphic.Icon object can be constructed. The same workaround can be used for other graphic formats not directly supported by the JVM.
One example of this kind of utilities is the Java Advanced Imaging toolkit (also known as JAI).
This set of classes provides, among other functionalities, means for reading TIFF files and use its result to build JViews
IlvIcon objects. (Note that since Java 5 (JDK 1.5), Java Image I/O is part of the JDK).
GeoTIFF format is supported starting with JViews Maps 7.5. The GeoTIFF reader is based on some extension packages such as Batik Apache TIFF Reader, an open source API included in the JViews Maps jar files.