com.sun.pdfview.decode
public class CCITTFaxDecode extends Object
Field Summary | |
---|---|
static int | BLACK |
static int | HORIZONTAL |
static int | PASS |
static int | TWOD |
static int | UNCOMPRESSED |
static int | VERTICAL |
static int | WHITE |
Method Summary | |
---|---|
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.