public class ImageIOTIFFImageWriter extends ImageIOImageWriter
Constructor and Description |
---|
ImageIOTIFFImageWriter()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
static IIOMetadataNode |
createMetadataField(int number,
String name)
Utility function to create a base TIFFField node for TIFF metadata.
|
static IIOMetadataNode |
createRationalMetadataNode(int number,
String name,
String value)
Utility to create a TIFFRational metadata child node of a TIFFRationals node for
TIFF metadata.
|
static IIOMetadataNode |
createShortMetadataNode(int number,
String name,
String value)
Utility to create a TIFFShort metadata child node of a TIFFShorts node for TIFF metadata.
|
static IIOMetadataNode |
createShortMetadataNode(int number,
String name,
String value,
String description)
Utility to create a TIFFShort metadata child node of a TIFFShorts node for TIFF metadata.
|
protected IIOMetadata |
createStreamMetadata(ImageWriter writer,
ImageWriteParam writeParam,
ImageWriterParams params)
Creates the stream metadata for image.
|
protected IIOMetadata |
updateMetadata(RenderedImage image,
IIOMetadata meta,
ImageWriterParams params)
Updates the metadata information based on the parameters to this writer.
|
createMultiImageWriter, getChildNode, getDefaultWriteParam, getMIMEType, isFunctional, supportsMultiImageWriter, warningOccurred, writeImage, writeImage
protected IIOMetadata updateMetadata(RenderedImage image, IIOMetadata meta, ImageWriterParams params)
updateMetadata
in class ImageIOImageWriter
image
- the current image being renderedmeta
- the metadataparams
- the parameterspublic static final IIOMetadataNode createShortMetadataNode(int number, String name, 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 IIOMetadataNode createShortMetadataNode(int number, String name, String value, 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 IIOMetadataNode createRationalMetadataNode(int number, String name, 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 IIOMetadataNode createMetadataField(int number, String name)
number
- value of the number attribute of the TIFFieldname
- value of the name attribute of the TIFFFieldprotected IIOMetadata createStreamMetadata(ImageWriter writer, ImageWriteParam writeParam, ImageWriterParams params)
createStreamMetadata
in class ImageIOImageWriter
writer
- the image writewriteParam
- the ImageIO write parametersparams
- the ImageWriter write parametersCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.