public class PDCcitt extends PDXObjectImage
SUB_TYPE
Constructor and Description |
---|
PDCcitt(PDDocument doc,
RandomAccess raf)
Construct from a tiff file.
|
PDCcitt(PDDocument doc,
RandomAccess raf,
int number)
Construct from a tiff file.
|
PDCcitt(PDStream ccitt)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
getRGBImage()
Returns an image of the CCITT Fax, or null if TIFFs are not supported.
|
void |
write2OutputStream(OutputStream out)
This writes a tiff to out.
|
applyMasks, createThumbnailXObject, getBitsPerComponent, getColorSpace, getDecode, getHeight, getImageMask, getMask, getSMaskImage, getStencilColor, getSuffix, getWidth, hasMask, imageMask, mask, setBitsPerComponent, setColorSpace, setHeight, setStencilColor, setWidth, write2file, write2file
clear, commonXObjectCreation, createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, getStructParent, setMetadata, setStructParent
public PDCcitt(PDStream ccitt)
ccitt
- The PDStream that already contains all ccitt information.public PDCcitt(PDDocument doc, RandomAccess raf, int number) throws IOException, IllegalArgumentException
doc
- The document to create the image as part of.raf
- The random access TIFF file which contains a suitable CCITT compressed imagenumber
- TIFF image number, starting from 0IOException
- If there is an error reading the tiff data.IllegalArgumentException
- If there is no such image numberpublic PDCcitt(PDDocument doc, RandomAccess raf) throws IOException
doc
- The document to create the image as part of.raf
- The random access TIFF file which contains a suitable CCITT compressed imageIOException
- If there is an error reading the tiff data.public BufferedImage getRGBImage() throws IOException
getRGBImage
in class PDXObjectImage
IOException
- If there is an error creating the image.public void write2OutputStream(OutputStream out) throws IOException
write2OutputStream
in class PDXObjectImage
out
- the OutputStream that the Image is written to.IOException
- when somethings wrong with outCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.