final class TIFFUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
Modifier | Constructor and Description |
---|---|
private |
TIFFUtil() |
Modifier and Type | Method and Description |
---|---|
private static javax.imageio.metadata.IIOMetadataNode |
createAsciiField(int number,
java.lang.String name,
java.lang.String val) |
private static javax.imageio.metadata.IIOMetadataNode |
createLongField(int number,
java.lang.String name,
long val) |
private static javax.imageio.metadata.IIOMetadataNode |
createRationalField(int number,
java.lang.String name,
int numerator,
int denominator) |
private static javax.imageio.metadata.IIOMetadataNode |
createShortField(int tiffTagNumber,
java.lang.String name,
int val) |
static void |
setCompressionType(javax.imageio.ImageWriteParam param,
java.awt.image.BufferedImage image)
Sets the ImageIO parameter compression type based on the given image.
|
(package private) static void |
updateMetadata(javax.imageio.metadata.IIOMetadata metadata,
java.awt.image.BufferedImage image,
int dpi)
Updates the given ImageIO metadata with Sun's custom TIFF tags, as described in
the org.apache.xmlgraphics.image.writer.imageio.ImageIOTIFFImageWriter
sources,
the com.sun.media.imageio.plugins.tiff
package javadoc
and the TIFF
specification.
|
public static void setCompressionType(javax.imageio.ImageWriteParam param, java.awt.image.BufferedImage image)
image
- buffered image used to decide compression typeparam
- ImageIO write parameter to updatestatic void updateMetadata(javax.imageio.metadata.IIOMetadata metadata, java.awt.image.BufferedImage image, int dpi) throws javax.imageio.metadata.IIOInvalidTreeException
image
- buffered image which will be writtenmetadata
- ImageIO metadatadpi
- image dots per inchjavax.imageio.metadata.IIOInvalidTreeException
- if something goes wrongprivate static javax.imageio.metadata.IIOMetadataNode createShortField(int tiffTagNumber, java.lang.String name, int val)
private static javax.imageio.metadata.IIOMetadataNode createAsciiField(int number, java.lang.String name, java.lang.String val)
private static javax.imageio.metadata.IIOMetadataNode createLongField(int number, java.lang.String name, long val)
private static javax.imageio.metadata.IIOMetadataNode createRationalField(int number, java.lang.String name, int numerator, int denominator)