com.sun.pdfview.decode

Class CCITTFaxDecode

public class CCITTFaxDecode extends Object

Decode CCITT Group 4 format coding into a byte array
Field Summary
static intBLACK
static intHORIZONTAL
static intPASS
static intTWOD
static intUNCOMPRESSED
static intVERTICAL
static intWHITE
Method Summary
protected static ByteBufferdecode(PDFObject dict, ByteBuffer buf, PDFObject params)
decode a buffer bits to a bitmap image using the CCITT Group 4 fax encoding.

Field Detail

BLACK

public static final int BLACK

HORIZONTAL

public static final int HORIZONTAL

PASS

public static final int PASS

TWOD

public static final int TWOD

UNCOMPRESSED

public static final int UNCOMPRESSED

VERTICAL

public static final int VERTICAL

WHITE

public static final int WHITE

Method Detail

decode

protected static ByteBuffer decode(PDFObject dict, ByteBuffer buf, PDFObject params)
decode a buffer bits to a bitmap image using the CCITT Group 4 fax encoding.

Parameters: buf the input byte buffer params the input parameters; must be a PDF dictionary that contains an entry for "Columns" describing how wide the image is in pixels.

Returns: a byte buffer describing the bits of the image. Each line of the image will be padded to the next byte boundary.