Constructor and Description |
---|
TiffImage() |
Modifier and Type | Method and Description |
---|---|
static void |
decodePackbits(byte[] data,
byte[] dst) |
(package private) static long[] |
getArrayLongShort(TIFFDirectory dir,
int tag) |
(package private) 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) |
(package private) static Image |
ProcessExtraSamples(DeflaterOutputStream zip,
DeflaterOutputStream mzip,
byte[] outBuf,
int samplePerPixel,
int bitsPerSample,
int width,
int height) |
public TiffImage()
public static int getNumberOfPages(RandomAccessFileOrArray s)
s
- the file sourcepublic static Image getTiffImage(RandomAccessFileOrArray s, int page)
s
- the file sourcepage
- the page to get. The first page is 1Image
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 timeImage
protected static Image getTiffImageColor(TIFFDirectory dir, RandomAccessFileOrArray s)
static Image ProcessExtraSamples(DeflaterOutputStream zip, DeflaterOutputStream mzip, byte[] outBuf, int samplePerPixel, int bitsPerSample, int width, int height) throws IOException
IOException
static long[] getArrayLongShort(TIFFDirectory dir, int tag)
public static void decodePackbits(byte[] data, byte[] dst)
public static void inflate(byte[] deflated, byte[] inflated)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses