public class TIFFImageWriter extends ImageWriter
Modifier and Type | Field and Description |
---|---|
static int[] |
compressionNumbers
Compression tag values for known compression types.
|
static String[] |
compressionTypes
Known TIFF compression types.
|
static int |
DEFAULT_BYTES_PER_STRIP |
static boolean[] |
isCompressionLossless
Lossless flag for known compression types.
|
static String[] |
TIFFCompressionTypes
Supported TIFF compression types.
|
availableLocales, locale, originatingProvider, output, progressListeners, warningListeners, warningLocales
Constructor and Description |
---|
TIFFImageWriter(ImageWriterSpi originatingProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsertEmpty(int imageIndex) |
boolean |
canInsertImage(int imageIndex) |
boolean |
canReplacePixels(int imageIndex) |
boolean |
canWriteEmpty() |
boolean |
canWriteSequence() |
IIOMetadata |
convertImageMetadata(IIOMetadata inData,
ImageTypeSpecifier imageType,
ImageWriteParam param) |
IIOMetadata |
convertStreamMetadata(IIOMetadata inData,
ImageWriteParam param) |
void |
dispose() |
void |
endInsertEmpty() |
void |
endReplacePixels() |
void |
endWriteEmpty() |
void |
endWriteSequence() |
IIOMetadata |
getDefaultImageMetadata(ImageTypeSpecifier imageType,
ImageWriteParam param) |
IIOMetadata |
getDefaultStreamMetadata(ImageWriteParam param) |
ImageWriteParam |
getDefaultWriteParam() |
void |
prepareInsertEmpty(int imageIndex,
ImageTypeSpecifier imageType,
int width,
int height,
IIOMetadata imageMetadata,
List thumbnails,
ImageWriteParam param) |
void |
prepareReplacePixels(int imageIndex,
Rectangle region) |
void |
prepareWriteEmpty(IIOMetadata streamMetadata,
ImageTypeSpecifier imageType,
int width,
int height,
IIOMetadata imageMetadata,
List thumbnails,
ImageWriteParam param) |
void |
prepareWriteSequence(IIOMetadata streamMetadata) |
void |
replacePixels(Raster raster,
ImageWriteParam param) |
void |
replacePixels(RenderedImage image,
ImageWriteParam param) |
void |
reset() |
void |
setOutput(Object output) |
void |
write(IIOMetadata sm,
IIOImage iioimage,
ImageWriteParam p) |
void |
writeInsert(int imageIndex,
IIOImage image,
ImageWriteParam param) |
void |
writeToSequence(IIOImage image,
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 String[] TIFFCompressionTypes
public static final String[] compressionTypes
public static final boolean[] isCompressionLossless
public static final int[] compressionNumbers
public TIFFImageWriter(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.
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.
ArithmeticException
- If tileHeight == 0
.public ImageWriteParam getDefaultWriteParam()
getDefaultWriteParam
in class ImageWriter
public void setOutput(Object output)
setOutput
in class ImageWriter
public IIOMetadata getDefaultStreamMetadata(ImageWriteParam param)
getDefaultStreamMetadata
in class ImageWriter
public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageType, ImageWriteParam param)
getDefaultImageMetadata
in class ImageWriter
public IIOMetadata convertStreamMetadata(IIOMetadata inData, ImageWriteParam param)
convertStreamMetadata
in interface ImageTranscoder
convertStreamMetadata
in class ImageWriter
public IIOMetadata convertImageMetadata(IIOMetadata inData, ImageTypeSpecifier imageType, ImageWriteParam param)
convertImageMetadata
in interface ImageTranscoder
convertImageMetadata
in class ImageWriter
public void write(IIOMetadata sm, IIOImage iioimage, ImageWriteParam p) throws IOException
write
in class ImageWriter
IOException
public boolean canWriteSequence()
canWriteSequence
in class ImageWriter
public void prepareWriteSequence(IIOMetadata streamMetadata) throws IOException
prepareWriteSequence
in class ImageWriter
IOException
public void writeToSequence(IIOImage image, ImageWriteParam param) throws IOException
writeToSequence
in class ImageWriter
IOException
public void endWriteSequence() throws IOException
endWriteSequence
in class ImageWriter
IOException
public boolean canInsertImage(int imageIndex) throws IOException
canInsertImage
in class ImageWriter
IOException
public void writeInsert(int imageIndex, IIOImage image, ImageWriteParam param) throws IOException
writeInsert
in class ImageWriter
IOException
public boolean canInsertEmpty(int imageIndex) throws IOException
canInsertEmpty
in class ImageWriter
IOException
public boolean canWriteEmpty() throws IOException
canWriteEmpty
in class ImageWriter
IOException
public void prepareInsertEmpty(int imageIndex, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List thumbnails, ImageWriteParam param) throws IOException
prepareInsertEmpty
in class ImageWriter
IOException
public void prepareWriteEmpty(IIOMetadata streamMetadata, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List thumbnails, ImageWriteParam param) throws IOException
prepareWriteEmpty
in class ImageWriter
IOException
public void endInsertEmpty() throws IOException
endInsertEmpty
in class ImageWriter
IOException
public void endWriteEmpty() throws IOException
endWriteEmpty
in class ImageWriter
IOException
public boolean canReplacePixels(int imageIndex) throws IOException
canReplacePixels
in class ImageWriter
IOException
public void prepareReplacePixels(int imageIndex, Rectangle region) throws IOException
prepareReplacePixels
in class ImageWriter
IOException
public void replacePixels(RenderedImage image, ImageWriteParam param) throws IOException
replacePixels
in class ImageWriter
IOException
public void replacePixels(Raster raster, ImageWriteParam param) throws IOException
replacePixels
in class ImageWriter
IOException
public void endReplacePixels() throws IOException
endReplacePixels
in class ImageWriter
IOException
public void reset()
reset
in class ImageWriter
public void dispose()
dispose
in class ImageWriter
Copyright © 2014 Open Microscopy Environment