incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anup Mistry" <anup.mis...@gmail.com>
Subject TIF multi-image?
Date Sun, 03 Aug 2008 13:25:18 GMT
Worked with Charles to write a BufferedImage into a .TIF file. This was with
a fix he had created after the 0.94 release. Thanks Charles!

Now I need to add more than one image to the .TIF file. This is needed for
document management software where a single document can be more than one
page, so its stored as a single file which makes it easier to index.

Think Sanselan should develop a feature something along the lines of
http://www.asprise.com/product/javatiff/javadoc/index.html then see method
 createTIFFFromImages

public static void *createTIFFFromImages*(java.awt.image.BufferedImage[] images,
                                        int conversion,
                                        int compression,
                                        java.io.File file)
                                 throws java.io.IOException

 Creates a TIFF file from the specified images. Before the images are put
into the TIFF, you can optionally convert them to gray
(TIFF_CONVERSION_TO_GRAY) or black-white (TIFF_CONVERSION_TO_BLACK_WHITE) to
reduce the file size. Also, you can set the compression algorithm for TIFF.

 *Parameters:* images - - list of images to be put into the TIFF file.
conversion - - converts the images into the specified format before putting
into the TIFF. compression - - compression algorithm used for TIFF. file - -
the TIFF file to be written to. *Throws:* java.io.IOException

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message