|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.xobject.PDXObject
org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage
org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt
public class PDCcitt
An image class for CCITT Fax.
Field Summary |
---|
Fields inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
---|
SUB_TYPE |
Constructor Summary | |
---|---|
PDCcitt(PDDocument doc,
RandomAccess raf)
Construct from a tiff file. |
|
PDCcitt(PDStream ccitt)
Standard constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
---|
getBitsPerComponent, getColorSpace, getDecode, getHeight, getImageMask, getMask, getSMaskImage, getSuffix, getWidth, setBitsPerComponent, setColorSpace, setGraphicsState, setHeight, setWidth, write2file, write2file |
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject |
---|
createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 image
java.io.IOException
- If there is an error reading the tiff data.Method Detail |
---|
public java.awt.image.BufferedImage getRGBImage() throws java.io.IOException
getRGBImage
in class PDXObjectImage
java.io.IOException
- If there is an error creating the image.public void write2OutputStream(java.io.OutputStream out) throws java.io.IOException
write2OutputStream
in class PDXObjectImage
out
- the OutputStream that the Image is written to.
java.io.IOException
- when somethings wrong with out
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |