[JAI] Tiff transparency and IndexColorModel
I am having troubles writing an image to a tiff file.
I have a PlanarImage
with the following characteristics:
1>IndexColorModel with one byte-based band. Support for
transparency is set to true, the transparency index is set to 0. Alpha
is not premultiplied
2>PixelInterleavedSampleModel, transfertype is 0 (byte), 1 band
I am using the following code to write it down as a TIFF
new File("c:/temp/" + tmpFile.getName() + ".tiff"));
The file is created without any errors but with no transparency. If I
instead try to write a GIF or a PNG transparency is fine.