public class TIFFImageDecoder extends ImageDecoderImpl
| Modifier and Type | Field and Description |
|---|---|
static int |
TIFF_BITS_PER_SAMPLE |
static int |
TIFF_COLORMAP |
static int |
TIFF_COMPRESSION |
static int |
TIFF_EXTRA_SAMPLES |
static int |
TIFF_FILL_ORDER |
static int |
TIFF_ICC_PROFILE |
static int |
TIFF_IMAGE_LENGTH |
static int |
TIFF_IMAGE_WIDTH |
static int |
TIFF_PHOTOMETRIC_INTERPRETATION |
static int |
TIFF_PLANAR_CONFIGURATION |
static int |
TIFF_PREDICTOR |
static int |
TIFF_RESOLUTION_UNIT |
static int |
TIFF_ROWS_PER_STRIP |
static int |
TIFF_S_MAX_SAMPLE_VALUE |
static int |
TIFF_S_MIN_SAMPLE_VALUE |
static int |
TIFF_SAMPLE_FORMAT |
static int |
TIFF_SAMPLES_PER_PIXEL |
static int |
TIFF_STRIP_BYTE_COUNTS |
static int |
TIFF_STRIP_OFFSETS |
static int |
TIFF_T4_OPTIONS |
static int |
TIFF_T6_OPTIONS |
static int |
TIFF_TILE_BYTE_COUNTS |
static int |
TIFF_TILE_LENGTH |
static int |
TIFF_TILE_OFFSETS |
static int |
TIFF_TILE_WIDTH |
static int |
TIFF_X_RESOLUTION |
static int |
TIFF_Y_RESOLUTION |
input, param| Constructor and Description |
|---|
TIFFImageDecoder(SeekableStream input,
TIFFDecodeParam param) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.RenderedImage |
decodeAsRenderedImage(int page)
Returns a
RenderedImage that contains the decoded
contents of the SeekableStream associated
with this ImageDecoder. |
int |
getNumPages()
Returns the number of pages present in the current stream.
|
decodeAsRaster, decodeAsRaster, decodeAsRenderedImage, getInputStream, getParam, setParampublic static final int TIFF_IMAGE_WIDTH
public static final int TIFF_IMAGE_LENGTH
public static final int TIFF_BITS_PER_SAMPLE
public static final int TIFF_COMPRESSION
public static final int TIFF_PHOTOMETRIC_INTERPRETATION
public static final int TIFF_FILL_ORDER
public static final int TIFF_STRIP_OFFSETS
public static final int TIFF_SAMPLES_PER_PIXEL
public static final int TIFF_ROWS_PER_STRIP
public static final int TIFF_STRIP_BYTE_COUNTS
public static final int TIFF_X_RESOLUTION
public static final int TIFF_Y_RESOLUTION
public static final int TIFF_PLANAR_CONFIGURATION
public static final int TIFF_T4_OPTIONS
public static final int TIFF_T6_OPTIONS
public static final int TIFF_RESOLUTION_UNIT
public static final int TIFF_PREDICTOR
public static final int TIFF_COLORMAP
public static final int TIFF_TILE_WIDTH
public static final int TIFF_TILE_LENGTH
public static final int TIFF_TILE_OFFSETS
public static final int TIFF_TILE_BYTE_COUNTS
public static final int TIFF_EXTRA_SAMPLES
public static final int TIFF_SAMPLE_FORMAT
public static final int TIFF_S_MIN_SAMPLE_VALUE
public static final int TIFF_S_MAX_SAMPLE_VALUE
public static final int TIFF_ICC_PROFILE
public TIFFImageDecoder(SeekableStream input, TIFFDecodeParam param)
public int getNumPages()
throws java.io.IOException
ImageDecoderImplgetNumPages in interface ImageDecodergetNumPages in class ImageDecoderImpljava.io.IOExceptionpublic java.awt.image.RenderedImage decodeAsRenderedImage(int page)
throws java.io.IOException
ImageDecoderImplRenderedImage that contains the decoded
contents of the SeekableStream associated
with this ImageDecoder.
The given page of a multi-page image is decoded. If
the page does not exist, an IOException will be thrown.
Page numbering begins at zero.decodeAsRenderedImage in interface ImageDecoderdecodeAsRenderedImage in class ImageDecoderImplpage - The page to be decoded.java.io.IOExceptionCopyright 1999-2025 The Apache Software Foundation. All Rights Reserved.