public class OMETiffWriter extends TiffWriter
checkParams, COMPRESSION_J2K, COMPRESSION_J2K_LOSSY, COMPRESSION_JPEG, COMPRESSION_LZW, COMPRESSION_UNCOMPRESSED, in, isBigTiff, tiffSaver
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, sequential, series, validBits
COMPRESSION_SUFFIXES, currentId, format, LOGGER, suffixes
Constructor and Description |
---|
OMETiffWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
saveBytes(int no,
byte[] buf,
IFD ifd,
int x,
int y,
int w,
int h)
Saves the given image to the specified series in the current file.
|
void |
saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Saves the given image tile to the current series in the current file.
|
void |
setId(java.lang.String id)
Sets the current file name.
|
canDoStacks, getPixelTypes, getPlaneCount, prepareToWriteImage, saveBytes, setBigTiff, setupTiffSaver
changeOutputFile, checkParams, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getSamplesPerPixel, getSeries, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setInterleaved, setMetadataRetrieve, setSeries, setValidBitsPerPixel, setWriteSequentially
checkSuffix, checkSuffix, getFormat, getNativeDataType, getSuffixes, isThisType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNativeDataType, getSuffixes, isThisType
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class TiffWriter
java.io.IOException
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, java.io.IOException
IFormatWriter
saveBytes
in interface IFormatWriter
saveBytes
in class TiffWriter
no
- the image index within the current file, starting from 0.buf
- the byte array that represents the image tile.x
- the X coordinate of the upper-left corner of the image tile.y
- the Y coordinate of the upper-left corner of the image tile.w
- the width (in pixels) of the image tile.h
- the height (in pixels) of the image tile.FormatException
- if one of the parameters is invalid.java.io.IOException
- if there was a problem writing to the file.IFormatWriter.saveBytes(int, byte[], int, int, int, int)
public void saveBytes(int no, byte[] buf, IFD ifd, int x, int y, int w, int h) throws FormatException, java.io.IOException
TiffWriter
saveBytes
in class TiffWriter
FormatException
java.io.IOException
loci.formats.IFormatWriter#saveBytes(int, byte[], IFD, int, int, int, int)
public void setId(java.lang.String id) throws FormatException, java.io.IOException
IFormatHandler
setId
in interface IFormatHandler
setId
in class TiffWriter
FormatException
java.io.IOException
Copyright © 2014 Open Microscopy Environment