Package loci.formats
Interface ICompressedTileWriter
- All Known Subinterfaces:
IFormatWriter
- All Known Implementing Classes:
APNGWriter,AVIWriter,BufferedImageWriter,CellH5Writer,DicomWriter,EPSWriter,FormatWriter,ICSWriter,ImageIOWriter,ImageWriter,JavaWriter,JPEG2000Writer,JPEGWriter,OMETiffWriter,OMEXMLWriter,PyramidOMETiffWriter,QTWriter,TiffWriter,V3DrawWriter,WriterWrapper
public interface ICompressedTileWriter
Interface for writing pre-compressed image tiles.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CodecgetCodec()default CodecOptionsdefault voidsaveCompressedBytes(int no, byte[] buf, int x, int y, int w, int h) Save a compressed tile to the current output file.
-
Method Details
-
saveCompressedBytes
default void saveCompressedBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException Save a compressed tile to the current output file. The compression type of the tile should match the compression type set in the writer.- Parameters:
no- plane indexbuf- compressed tile bytesx- pixel X coordinate of the upper-left corner of the tiley- pixel Y coordinate of the upper-left corner of the tilew- width in pixels of the compressed tileh- height in pixels of the compressed tile- Throws:
FormatExceptionIOException
-
getCodec
- Returns:
- the codec that can be used to compress tiles
-
getCodecOptions
- Returns:
- the codec options that can be used to compress tiles
-