com.lowagie.text.pdf.codec
public class TiffImage extends Object
Method Summary | |
---|---|
static void | decodePackbits(byte[] data, byte[] dst) |
static long[] | getArrayLongShort(TIFFDirectory dir, int tag) |
static int | getDpi(TIFFField fd, int resolutionUnit) |
static int | getNumberOfPages(RandomAccessFileOrArray s) Gets the number of pages the TIFF document has. |
static Image | getTiffImage(RandomAccessFileOrArray s, int page) Reads a page from a TIFF image. |
static Image | getTiffImage(RandomAccessFileOrArray s, int page, boolean direct) Reads a page from a TIFF image. |
protected static Image | getTiffImageColor(TIFFDirectory dir, RandomAccessFileOrArray s) |
static void | inflate(byte[] deflated, byte[] inflated) |
Parameters: s the file source
Returns: the number of pages
Parameters: s the file source page the page to get. The first page is 1
Returns: the Image
Parameters: s the file source page the page to get. The first page is 1 direct for single strip, CCITT images, generate the image by direct byte copying. It's faster but may not work every time
Returns: the Image