public class ImageIOTIFFImageWriter extends ImageIOImageWriter
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DENOMINATOR_CENTIMETER |
private static java.lang.String |
DENOMINATOR_INCH |
private static java.lang.String |
SUN_TIFF_NATIVE_FORMAT |
private static java.lang.String |
SUN_TIFF_NATIVE_STREAM_FORMAT |
Constructor and Description |
---|
ImageIOTIFFImageWriter()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
static javax.imageio.metadata.IIOMetadataNode |
createMetadataField(int number,
java.lang.String name)
Utility function to create a base TIFFField node for TIFF metadata.
|
static javax.imageio.metadata.IIOMetadataNode |
createRationalMetadataNode(int number,
java.lang.String name,
java.lang.String value)
Utility to create a TIFFRational metadata child node of a TIFFRationals node for
TIFF metadata.
|
private javax.imageio.metadata.IIOMetadataNode |
createResolutionField(int number,
java.lang.String name,
java.lang.Integer resolution,
ResolutionUnit unit) |
private javax.imageio.metadata.IIOMetadataNode |
createResolutionUnitField(ImageWriterParams params)
Generate a TIFFField for resolution unit based on the parameters.
|
static javax.imageio.metadata.IIOMetadataNode |
createShortMetadataNode(int number,
java.lang.String name,
java.lang.String value)
Utility to create a TIFFShort metadata child node of a TIFFShorts node for TIFF metadata.
|
static javax.imageio.metadata.IIOMetadataNode |
createShortMetadataNode(int number,
java.lang.String name,
java.lang.String value,
java.lang.String description)
Utility to create a TIFFShort metadata child node of a TIFFShorts node for TIFF metadata.
|
protected javax.imageio.metadata.IIOMetadata |
createStreamMetadata(javax.imageio.ImageWriter writer,
javax.imageio.ImageWriteParam writeParam,
ImageWriterParams params)
Creates the stream metadata for image.
|
protected javax.imageio.metadata.IIOMetadata |
updateMetadata(java.awt.image.RenderedImage image,
javax.imageio.metadata.IIOMetadata meta,
ImageWriterParams params)
Updates the metadata information based on the parameters to this writer.
|
createMultiImageWriter, getChildNode, getDefaultWriteParam, getMIMEType, isFunctional, supportsMultiImageWriter, warningOccurred, writeImage, writeImage
private static final java.lang.String SUN_TIFF_NATIVE_FORMAT
private static final java.lang.String SUN_TIFF_NATIVE_STREAM_FORMAT
private static final java.lang.String DENOMINATOR_CENTIMETER
private static final java.lang.String DENOMINATOR_INCH
protected javax.imageio.metadata.IIOMetadata updateMetadata(java.awt.image.RenderedImage image, javax.imageio.metadata.IIOMetadata meta, ImageWriterParams params)
updateMetadata
in class ImageIOImageWriter
image
- the current image being renderedmeta
- the metadataparams
- the parametersprivate javax.imageio.metadata.IIOMetadataNode createResolutionField(int number, java.lang.String name, java.lang.Integer resolution, ResolutionUnit unit)
private javax.imageio.metadata.IIOMetadataNode createResolutionUnitField(ImageWriterParams params)
params
- public static final javax.imageio.metadata.IIOMetadataNode createShortMetadataNode(int number, java.lang.String name, java.lang.String value)
number
- value of the number attribute of the TIFFieldname
- value of the name attribute of the TIFFFieldvalue
- value of the value attribute of the TIFFShortpublic static final javax.imageio.metadata.IIOMetadataNode createShortMetadataNode(int number, java.lang.String name, java.lang.String value, java.lang.String description)
number
- value of the number attribute of the TIFFieldname
- value of the name attribute of the TIFFFieldvalue
- value of the value attribute of the TIFFShortdescription
- value of the description attribute of the TIFFShort, ignored if nullpublic static final javax.imageio.metadata.IIOMetadataNode createRationalMetadataNode(int number, java.lang.String name, java.lang.String value)
number
- value of the number attribute of the TIFFieldname
- value of the name attribute of the TIFFFieldvalue
- value of the value attribute of the TIFFRationalpublic static final javax.imageio.metadata.IIOMetadataNode createMetadataField(int number, java.lang.String name)
number
- value of the number attribute of the TIFFieldname
- value of the name attribute of the TIFFFieldprotected javax.imageio.metadata.IIOMetadata createStreamMetadata(javax.imageio.ImageWriter writer, javax.imageio.ImageWriteParam writeParam, ImageWriterParams params)
createStreamMetadata
in class ImageIOImageWriter
writer
- the image writewriteParam
- the ImageIO write parametersparams
- the ImageWriter write parameters