APIdia Launch Partner
Top Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFT6Compressor

extends TIFFFaxCompressor
Class Inheritance
Imports
javax.imageio.plugins.tiff.BaselineTIFFTagSet, .TIFFField, .TIFFTag, java.io.IOException, javax.imageio.IIOException

Field Summary

Inherited from com.sun.imageio.plugins.tiff.TIFFFaxCompressor:
bitsBLACKbyteTablehorzhorzModeinverseFillmakeupCodesmakeupCodesBlackmakeupCodesWhitendexpasspassModetermCodestermCodesBlacktermCodesWhitevertvertModeWHITE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride)

Implements abstract com.sun.imageio.plugins.tiff.TIFFCompressor.encode.

Encodes the supplied image data, writing to the currently set ImageOutputStream.

public synchronized int

Returns:

The number of bytes saved in the compressed data array.
encodeT6
(byte[]
The row of data to compress.
data
,
int
Byte step between the same sample in different rows.
lineStride
,
int
Bit offset within first data[rowOffset].
colOffset
,
int
Number of bits in the row.
width
,
int
Number of rows in the buffer.
height
,
byte[]
The compressed data.
compData
)

Encode a buffer of data using CCITT T.6 Compression also known as Group 4 facsimile compression.

Inherited from com.sun.imageio.plugins.tiff.TIFFFaxCompressor:
add1DBitsadd2DBitsaddEOFBaddEOLencode1DinitBitBufnextStatesetMetadata

Constructor Detail

TIFFT6Compressorback to summary
public TIFFT6Compressor()

Method Detail

encodeback to summary
public int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException

Implements abstract com.sun.imageio.plugins.tiff.TIFFCompressor.encode.

Doc from com.sun.imageio.plugins.tiff.TIFFCompressor.encode.

Encodes the supplied image data, writing to the currently set ImageOutputStream.

Annotations
@Override
Exceptions
IOException:
if the supplied data cannot be encoded by this TIFFCompressor, or if any I/O error occurs during writing.
encodeT6back to summary
public synchronized int encodeT6(byte[] data, int lineStride, int colOffset, int width, int height, byte[] compData)

Encode a buffer of data using CCITT T.6 Compression also known as Group 4 facsimile compression.

Parameters
data:byte[]

The row of data to compress.

lineStride:int

Byte step between the same sample in different rows.

colOffset:int

Bit offset within first data[rowOffset].

width:int

Number of bits in the row.

height:int

Number of rows in the buffer.

compData:byte[]

The compressed data.

Returns:int

The number of bytes saved in the compressed data array.