public class TIFFImageWriter
extends javax.imageio.ImageWriter
Modifier and Type | Field and Description |
---|---|
static int[] |
compressionNumbers
Compression tag values for known compression types.
|
static java.lang.String[] |
compressionTypes
Known TIFF compression types.
|
static int |
DEFAULT_BYTES_PER_STRIP |
static boolean[] |
isCompressionLossless
Lossless flag for known compression types.
|
static java.lang.String[] |
TIFFCompressionTypes
Supported TIFF compression types.
|
Constructor and Description |
---|
TIFFImageWriter(javax.imageio.spi.ImageWriterSpi originatingProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsertEmpty(int imageIndex) |
boolean |
canInsertImage(int imageIndex) |
boolean |
canReplacePixels(int imageIndex) |
boolean |
canWriteEmpty() |
boolean |
canWriteSequence() |
javax.imageio.metadata.IIOMetadata |
convertImageMetadata(javax.imageio.metadata.IIOMetadata inData,
javax.imageio.ImageTypeSpecifier imageType,
javax.imageio.ImageWriteParam param) |
javax.imageio.metadata.IIOMetadata |
convertStreamMetadata(javax.imageio.metadata.IIOMetadata inData,
javax.imageio.ImageWriteParam param) |
void |
dispose() |
void |
endInsertEmpty() |
void |
endReplacePixels() |
void |
endWriteEmpty() |
void |
endWriteSequence() |
javax.imageio.metadata.IIOMetadata |
getDefaultImageMetadata(javax.imageio.ImageTypeSpecifier imageType,
javax.imageio.ImageWriteParam param) |
javax.imageio.metadata.IIOMetadata |
getDefaultStreamMetadata(javax.imageio.ImageWriteParam param) |
javax.imageio.ImageWriteParam |
getDefaultWriteParam() |
void |
prepareInsertEmpty(int imageIndex,
javax.imageio.ImageTypeSpecifier imageType,
int width,
int height,
javax.imageio.metadata.IIOMetadata imageMetadata,
java.util.List thumbnails,
javax.imageio.ImageWriteParam param) |
void |
prepareReplacePixels(int imageIndex,
java.awt.Rectangle region) |
void |
prepareWriteEmpty(javax.imageio.metadata.IIOMetadata streamMetadata,
javax.imageio.ImageTypeSpecifier imageType,
int width,
int height,
javax.imageio.metadata.IIOMetadata imageMetadata,
java.util.List thumbnails,
javax.imageio.ImageWriteParam param) |
void |
prepareWriteSequence(javax.imageio.metadata.IIOMetadata streamMetadata) |
void |
replacePixels(java.awt.image.Raster raster,
javax.imageio.ImageWriteParam param) |
void |
replacePixels(java.awt.image.RenderedImage image,
javax.imageio.ImageWriteParam param) |
void |
reset() |
void |
setOutput(java.lang.Object output) |
void |
write(javax.imageio.metadata.IIOMetadata sm,
javax.imageio.IIOImage iioimage,
javax.imageio.ImageWriteParam p) |
void |
writeInsert(int imageIndex,
javax.imageio.IIOImage image,
javax.imageio.ImageWriteParam param) |
void |
writeToSequence(javax.imageio.IIOImage image,
javax.imageio.ImageWriteParam param) |
static int |
XToTileX(int x,
int tileGridXOffset,
int tileWidth)
Converts a pixel's X coordinate into a horizontal tile index
relative to a given tile grid layout specified by its X offset
and tile width.
|
static int |
YToTileY(int y,
int tileGridYOffset,
int tileHeight)
Converts a pixel's Y coordinate into a vertical tile index
relative to a given tile grid layout specified by its Y offset
and tile height.
|
abort, abortRequested, addIIOWriteProgressListener, addIIOWriteWarningListener, canRemoveImage, canReplaceImageMetadata, canReplaceStreamMetadata, canWriteRasters, clearAbortRequest, getAvailableLocales, getLocale, getNumThumbnailsSupported, getOriginatingProvider, getOutput, getPreferredThumbnailSizes, processImageComplete, processImageProgress, processImageStarted, processThumbnailComplete, processThumbnailProgress, processThumbnailStarted, processWarningOccurred, processWarningOccurred, processWriteAborted, removeAllIIOWriteProgressListeners, removeAllIIOWriteWarningListeners, removeIIOWriteProgressListener, removeIIOWriteWarningListener, removeImage, replaceImageMetadata, replaceStreamMetadata, setLocale, write, write
public static final int DEFAULT_BYTES_PER_STRIP
public static final java.lang.String[] TIFFCompressionTypes
public static final java.lang.String[] compressionTypes
public static final boolean[] isCompressionLossless
public static final int[] compressionNumbers
public TIFFImageWriter(javax.imageio.spi.ImageWriterSpi originatingProvider)
public static int XToTileX(int x, int tileGridXOffset, int tileWidth)
If tileWidth < 0
, the results of this method
are undefined. If tileWidth == 0
, an
ArithmeticException
will be thrown.
java.lang.ArithmeticException
- If tileWidth == 0
.public static int YToTileY(int y, int tileGridYOffset, int tileHeight)
If tileHeight < 0
, the results of this method
are undefined. If tileHeight == 0
, an
ArithmeticException
will be thrown.
java.lang.ArithmeticException
- If tileHeight == 0
.public javax.imageio.ImageWriteParam getDefaultWriteParam()
getDefaultWriteParam
in class javax.imageio.ImageWriter
public void setOutput(java.lang.Object output)
setOutput
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata getDefaultStreamMetadata(javax.imageio.ImageWriteParam param)
getDefaultStreamMetadata
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata getDefaultImageMetadata(javax.imageio.ImageTypeSpecifier imageType, javax.imageio.ImageWriteParam param)
getDefaultImageMetadata
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata convertStreamMetadata(javax.imageio.metadata.IIOMetadata inData, javax.imageio.ImageWriteParam param)
convertStreamMetadata
in interface javax.imageio.ImageTranscoder
convertStreamMetadata
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata convertImageMetadata(javax.imageio.metadata.IIOMetadata inData, javax.imageio.ImageTypeSpecifier imageType, javax.imageio.ImageWriteParam param)
convertImageMetadata
in interface javax.imageio.ImageTranscoder
convertImageMetadata
in class javax.imageio.ImageWriter
public void write(javax.imageio.metadata.IIOMetadata sm, javax.imageio.IIOImage iioimage, javax.imageio.ImageWriteParam p) throws java.io.IOException
write
in class javax.imageio.ImageWriter
java.io.IOException
public boolean canWriteSequence()
canWriteSequence
in class javax.imageio.ImageWriter
public void prepareWriteSequence(javax.imageio.metadata.IIOMetadata streamMetadata) throws java.io.IOException
prepareWriteSequence
in class javax.imageio.ImageWriter
java.io.IOException
public void writeToSequence(javax.imageio.IIOImage image, javax.imageio.ImageWriteParam param) throws java.io.IOException
writeToSequence
in class javax.imageio.ImageWriter
java.io.IOException
public void endWriteSequence() throws java.io.IOException
endWriteSequence
in class javax.imageio.ImageWriter
java.io.IOException
public boolean canInsertImage(int imageIndex) throws java.io.IOException
canInsertImage
in class javax.imageio.ImageWriter
java.io.IOException
public void writeInsert(int imageIndex, javax.imageio.IIOImage image, javax.imageio.ImageWriteParam param) throws java.io.IOException
writeInsert
in class javax.imageio.ImageWriter
java.io.IOException
public boolean canInsertEmpty(int imageIndex) throws java.io.IOException
canInsertEmpty
in class javax.imageio.ImageWriter
java.io.IOException
public boolean canWriteEmpty() throws java.io.IOException
canWriteEmpty
in class javax.imageio.ImageWriter
java.io.IOException
public void prepareInsertEmpty(int imageIndex, javax.imageio.ImageTypeSpecifier imageType, int width, int height, javax.imageio.metadata.IIOMetadata imageMetadata, java.util.List thumbnails, javax.imageio.ImageWriteParam param) throws java.io.IOException
prepareInsertEmpty
in class javax.imageio.ImageWriter
java.io.IOException
public void prepareWriteEmpty(javax.imageio.metadata.IIOMetadata streamMetadata, javax.imageio.ImageTypeSpecifier imageType, int width, int height, javax.imageio.metadata.IIOMetadata imageMetadata, java.util.List thumbnails, javax.imageio.ImageWriteParam param) throws java.io.IOException
prepareWriteEmpty
in class javax.imageio.ImageWriter
java.io.IOException
public void endInsertEmpty() throws java.io.IOException
endInsertEmpty
in class javax.imageio.ImageWriter
java.io.IOException
public void endWriteEmpty() throws java.io.IOException
endWriteEmpty
in class javax.imageio.ImageWriter
java.io.IOException
public boolean canReplacePixels(int imageIndex) throws java.io.IOException
canReplacePixels
in class javax.imageio.ImageWriter
java.io.IOException
public void prepareReplacePixels(int imageIndex, java.awt.Rectangle region) throws java.io.IOException
prepareReplacePixels
in class javax.imageio.ImageWriter
java.io.IOException
public void replacePixels(java.awt.image.RenderedImage image, javax.imageio.ImageWriteParam param) throws java.io.IOException
replacePixels
in class javax.imageio.ImageWriter
java.io.IOException
public void replacePixels(java.awt.image.Raster raster, javax.imageio.ImageWriteParam param) throws java.io.IOException
replacePixels
in class javax.imageio.ImageWriter
java.io.IOException
public void endReplacePixels() throws java.io.IOException
endReplacePixels
in class javax.imageio.ImageWriter
java.io.IOException
public void reset()
reset
in class javax.imageio.ImageWriter
public void dispose()
dispose
in class javax.imageio.ImageWriter
Copyright © 2014 Open Microscopy Environment