Package loci.formats.out
Class OMETiffWriter
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatWriter
loci.formats.out.TiffWriter
loci.formats.out.OMETiffWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,loci.formats.ICompressedTileWriter,loci.formats.IFormatHandler,loci.formats.IFormatWriter,loci.formats.IMetadataConfigurable,loci.formats.IPyramidHandler
- Direct Known Subclasses:
PyramidOMETiffWriter
OMETiffWriter is the file format writer for OME-TIFF files.
-
Field Summary
FieldsFields inherited from class loci.formats.out.TiffWriter
canDetectBigTiff, checkParams, COMPRESSION_J2K, COMPRESSION_J2K_LOSSY, COMPRESSION_JPEG, COMPRESSION_LZW, COMPRESSION_UNCOMPRESSED, COMPRESSION_ZLIB, in, isBigTiff, tiffSaver, tileSizeX, tileSizeYFields inherited from class loci.formats.FormatWriter
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, resolution, resolutionData, sequential, series, validBitsFields inherited from class loci.formats.FormatHandler
COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get the value of theCOMPANION_KEYoption.booleanGet the value of theCREATOR_KEYoption.voidsaveBytes(int no, byte[] buf, int x, int y, int w, int h) voidSaves the given image to the specified series in the current file.voidsaveCompressedBytes(int no, byte[] buf, int x, int y, int w, int h) voidMethods inherited from class loci.formats.out.TiffWriter
canDoStacks, createInputStream, createTiffSaver, getCodec, getPixelTypes, getPlaneCount, getTileSizeX, getTileSizeY, makeIFD, prepareToWriteImage, saveBytes, setBigTiff, setCanDetectBigTiff, setTileSizeX, setTileSizeY, setupTiffSaverMethods inherited from class loci.formats.FormatWriter
changeOutputFile, checkParams, createOutputStream, getCodecOptions, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getResolution, getResolutionCount, getResolutions, getSamplesPerPixel, getSamplesPerPixel, getSeries, getSizeX, getSizeY, hasResolutions, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setInterleaved, setMetadataRetrieve, setResolution, setResolutions, setSeries, setValidBitsPerPixel, setWriteSequentiallyMethods inherited from class loci.formats.FormatHandler
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, isThisType, setMetadataOptionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixes, isThisTypeMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
COMPANION_KEY
- See Also:
-
CREATOR_KEY
- See Also:
-
-
Constructor Details
-
OMETiffWriter
public OMETiffWriter()
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classTiffWriter- Throws:
IOException
-
saveCompressedBytes
public void saveCompressedBytes(int no, byte[] buf, int x, int y, int w, int h) throws loci.formats.FormatException, IOException - Specified by:
saveCompressedBytesin interfaceloci.formats.ICompressedTileWriter- Overrides:
saveCompressedBytesin classTiffWriter- Throws:
loci.formats.FormatExceptionIOException
-
saveBytes
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws loci.formats.FormatException, IOException - Specified by:
saveBytesin interfaceloci.formats.IFormatWriter- Overrides:
saveBytesin classTiffWriter- Throws:
loci.formats.FormatExceptionIOException- See Also:
-
saveBytes
public void saveBytes(int no, byte[] buf, IFD ifd, int x, int y, int w, int h) throws loci.formats.FormatException, IOException Description copied from class:TiffWriterSaves the given image to the specified series in the current file. The IFD hashtable allows specification of TIFF parameters such as bit depth, compression and units. Use one IFD instance per plane.- Overrides:
saveBytesin classTiffWriter- Throws:
loci.formats.FormatExceptionIOException- See Also:
-
setId
- Specified by:
setIdin interfaceloci.formats.IFormatHandler- Overrides:
setIdin classTiffWriter- Throws:
loci.formats.FormatExceptionIOException
-
getCompanion
Get the value of theCOMPANION_KEYoption.- Returns:
- path to the companion file, or null if a companion file is not used
-
preserveCreator
public boolean preserveCreator()Get the value of theCREATOR_KEYoption. This toggles whether or not the OME Creator attribute will be overwritten with the current Bio-Formats version. For input data that does not have a Creator attribute defined, this makes no difference. By default, returns false, i.e. the Creator will be overwritten if it exists.- Returns:
- true if the Creator attribute should be preserved (if it exists)
-