com.lowagie.text

Class ImgCCITT

public class ImgCCITT extends Image

CCITT Image data that has to be inserted into the document

Author: Paulo Soares

See Also: Element

Field Summary
static byte[]bitReversal
A table to do fast bit reversal.
Constructor Summary
ImgCCITT(Image image)
ImgCCITT(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data)
Creates an Image with CCITT compression.
Method Summary
static voidReverseBits(byte[] data)
Reverses the bits in the array.

Field Detail

bitReversal

static final byte[] bitReversal
A table to do fast bit reversal.

Constructor Detail

ImgCCITT

ImgCCITT(Image image)

ImgCCITT

public ImgCCITT(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data)
Creates an Image with CCITT compression.

Parameters: width the exact width of the image height the exact height of the image reverseBits reverses the bits in data. Bit 0 is swapped with bit 7 and so on typeCCITT the type of compression in data. It can be CCITTG4, CCITTG31D, CCITTG32D parameters parameters associated with this stream. Possible values are CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFLINE and CCITT_ENDOFBLOCK or a combination of them data the image data

Throws: BadElementException on error

Method Detail

ReverseBits

public static void ReverseBits(byte[] data)
Reverses the bits in the array.

Parameters: data data to reverse bits