| Modifier and Type | Field and Description |
|---|---|
| protected int | compressionTagValue
The value to be assigned to the TIFF Compression tag in the TIFF image metadata. |
| protected String | compressionType
The name of the compression type supported by this compressor. |
| protected boolean | isCompressionLossless
Whether the compression is lossless. |
| protected IIOMetadata | metadata
The |
| protected ImageOutputStream | stream
The |
| protected ImageWriter | writer
The |
| Access | Constructor and Description |
|---|---|
| public | TIFFCompressor(String
The name of the compression type. compressionType, int The value to be assigned to the TIFF
Compression tag in the TIFF image metadata; ignored if
compressionTagValue, boolean compressionType is a known type.Whether the compression is lossless;
ignored if isCompressionLossless)compressionType is a known type.Creates a compressor object for use in compressing TIFF data. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract int | Returns: the number of bytes written.an array of b, int bytes containing the packed
but uncompressed image data.the starting offset of the data to be written in the
array off, int b.the width of the rectangle of pixels to be written. width, int the height of the rectangle of pixels to be written. height, int[] an array of bitsPerSample, int ints indicting
the number of bits used to represent each image sample within
a pixel.the number of bytes separating each
row of the input data. scanlineStride)Encodes the supplied image data, writing to the currently set
|
| public int | Returns: The Compression tag value.Retrieve the value to be assigned to the TIFF Compression tag in the TIFF image metadata. |
| public String | Returns: The compression type name.Retrieve the name of the compression type supported by this compressor. |
| public IIOMetadata | Returns: theIIOMetadata object for the image being
written.Returns the current |
| public ImageOutputStream | |
| public ImageWriter | |
| public boolean | Returns: Whether the compression is lossless.Retrieves a value indicating whether the compression is lossless. |
| public void | setMetadata(IIOMetadata
the metadata)IIOMetadata object for the
image being written.Sets the value of the |
| public void | setStream(ImageOutputStream
an stream)ImageOutputStream to be written.Sets the |
| public void |
| compressionTagValue | back to summary |
|---|---|
| protected int compressionTagValue The value to be assigned to the TIFF Compression tag in the TIFF image metadata. | |
| compressionType | back to summary |
|---|---|
| protected String compressionType The name of the compression type supported by this compressor. | |
| isCompressionLossless | back to summary |
|---|---|
| protected boolean isCompressionLossless Whether the compression is lossless. | |
| metadata | back to summary |
|---|---|
| protected IIOMetadata metadata The | |
| stream | back to summary |
|---|---|
| protected ImageOutputStream stream The | |
| writer | back to summary |
|---|---|
| protected ImageWriter writer The | |
| TIFFCompressor | back to summary |
|---|---|
| public TIFFCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless) Creates a compressor object for use in compressing TIFF data. The parameters
| |
| encode | back to summary |
|---|---|
| public abstract int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException Encodes the supplied image data, writing to the currently set
| |
| getCompressionTagValue | back to summary |
|---|---|
| public int getCompressionTagValue() Retrieve the value to be assigned to the TIFF Compression tag in the TIFF image metadata.
| |
| getCompressionType | back to summary |
|---|---|
| public String getCompressionType() Retrieve the name of the compression type supported by this compressor.
| |
| getMetadata | back to summary |
|---|---|
| public IIOMetadata getMetadata() Returns the current
| |
| getStream | back to summary |
|---|---|
| public ImageOutputStream getStream() Returns the
| |
| getWriter | back to summary |
|---|---|
| public ImageWriter getWriter() Returns the current
| |
| isCompressionLossless | back to summary |
|---|---|
| public boolean isCompressionLossless() Retrieves a value indicating whether the compression is lossless.
| |
| setMetadata | back to summary |
|---|---|
| public void setMetadata(IIOMetadata metadata) Sets the value of the
| |
| setStream | back to summary |
|---|---|
| public void setStream(ImageOutputStream stream) Sets the
| |
| setWriter | back to summary |
|---|---|
| public void setWriter(ImageWriter writer) Sets the value of the
| |