|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.asprise.util.tiff.TIFFWriter
A utility class to create TIFF files with image conversion abilities.
| Field Summary | |
static int |
preferredResolution
The preferred resolution - use 0 for default |
static boolean |
reverseColorDuringConversion
Should colors be reversed during conversion? |
static int |
TIFF_COMPRESSION_DEFLATE
Zip in TIFF compression (lossless). |
static int |
TIFF_COMPRESSION_GROUP3_1D
CCITT run length encoding. |
static int |
TIFF_COMPRESSION_GROUP3_2D
CCITT T.4 compression for bilevel only. |
static int |
TIFF_COMPRESSION_GROUP4
CCITT T.6 compression for bilevel only. |
static int |
TIFF_COMPRESSION_NONE
Indicates no compression. |
static int |
TIFF_COMPRESSION_PACKBITS
byte-oriented 'packbits' compression. |
static int |
TIFF_CONVERSION_NONE
Do not convert images. |
static int |
TIFF_CONVERSION_TO_BLACK_WHITE
Converts images into black white. |
static int |
TIFF_CONVERSION_TO_GRAY
Converts images into gray. |
| Constructor Summary | |
TIFFWriter()
|
|
| Method Summary | |
static void |
createTIFFFromImages(java.awt.image.BufferedImage[] images,
java.io.File file)
Creates a TIFF file from the specified images. all the images are converted to black-white and GROUP4 compression is used for the TIFF. |
static void |
createTIFFFromImages(java.awt.image.BufferedImage[] images,
int conversion,
int compression,
java.io.File file)
Creates a TIFF file from the specified images. |
static java.awt.image.BufferedImage |
getBufferedImageFromImage(java.awt.Image image)
Converts an image into a buffered image. |
static void |
main(java.lang.String[] args)
Simply console utility tool to create TIFF file from image files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TIFF_COMPRESSION_NONE
public static final int TIFF_COMPRESSION_PACKBITS
public static final int TIFF_COMPRESSION_GROUP3_1D
public static final int TIFF_COMPRESSION_GROUP3_2D
public static final int TIFF_COMPRESSION_GROUP4
public static final int TIFF_COMPRESSION_DEFLATE
public static final int TIFF_CONVERSION_TO_BLACK_WHITE
public static final int TIFF_CONVERSION_TO_GRAY
public static final int TIFF_CONVERSION_NONE
public static boolean reverseColorDuringConversion
public static int preferredResolution
| Constructor Detail |
public TIFFWriter()
| Method Detail |
public static void createTIFFFromImages(java.awt.image.BufferedImage[] images,
java.io.File file)
throws java.io.IOException
images - file -
java.io.IOException
public static void createTIFFFromImages(java.awt.image.BufferedImage[] images,
int conversion,
int compression,
java.io.File file)
throws java.io.IOException
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.
java.io.IOExceptionpublic static java.awt.image.BufferedImage getBufferedImageFromImage(java.awt.Image image)
image -
public static void main(java.lang.String[] args)
throws java.io.IOException
args -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||