public class PDCcitt extends PDXObjectImage
SUB_TYPE| Constructor and Description |
|---|
PDCcitt(PDDocument doc,
RandomAccess raf)
Construct from a tiff file.
|
PDCcitt(PDStream ccitt)
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
getRGBImage()
Returns an image of the CCITT Fax, or null if TIFFs are not supported.
|
void |
write2OutputStream(java.io.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, write2filecommonXObjectCreation, createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, getStructParent, setMetadata, setStructParentpublic PDCcitt(PDStream ccitt)
ccitt - The PDStream that already contains all ccitt information.public PDCcitt(PDDocument doc, RandomAccess raf) throws java.io.IOException
doc - The document to create the image as part of.raf - The random access TIFF file which contains a suitable CCITT compressed imagejava.io.IOException - If there is an error reading the tiff data.public java.awt.image.BufferedImage getRGBImage()
throws java.io.IOException
getRGBImage in class PDXObjectImagejava.io.IOException - If there is an error creating the image.public void write2OutputStream(java.io.OutputStream out)
throws java.io.IOException
write2OutputStream in class PDXObjectImageout - the OutputStream that the Image is written to.java.io.IOException - when somethings wrong with out