|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.pdf.codec.TiffImage
public class TiffImage
Reads TIFF images
Constructor Summary | |
---|---|
TiffImage()
|
Method Summary | |
---|---|
static void |
decodePackbits(byte[] data,
byte[] dst)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TiffImage()
Method Detail |
---|
public static int getNumberOfPages(RandomAccessFileOrArray s)
s
- the file source
public static Image getTiffImage(RandomAccessFileOrArray s, int page)
s
- the file sourcepage
- the page to get. The first page is 1
Image
public static Image getTiffImage(RandomAccessFileOrArray s, int page, boolean direct)
s
- the file sourcepage
- the page to get. The first page is 1direct
- for single strip, CCITT images, generate the image
by direct byte copying. It's faster but may not work
every time
Image
protected static Image getTiffImageColor(TIFFDirectory dir, RandomAccessFileOrArray s)
public static void decodePackbits(byte[] data, byte[] dst)
public static void inflate(byte[] deflated, byte[] inflated)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |