| |
|
| java.lang.Object com.sun.pdfview.PDFImage
PDFImage | public class PDFImage (Code) | | Encapsulates a PDF Image
|
PDFImage | protected PDFImage(PDFObject imageObj)(Code) | | Create an instance of a PDFImage
|
createImage | public static PDFImage createImage(PDFObject obj, Map resources) throws IOException(Code) | | Read a PDFImage from an image dictionary and stream
Parameters: obj - the PDFObject containing the image's dictionary and stream Parameters: resources - the current resources |
getBitsPerComponent | protected int getBitsPerComponent()(Code) | | Get the number of bits per component sample
|
getColorSpace | protected PDFColorSpace getColorSpace()(Code) | | Get the colorspace associated with this image, or null if there
isn't one
|
getDecode | protected float[] getDecode()(Code) | | Get the decode array
|
getHeight | public int getHeight()(Code) | | Get the image's height
|
getImage | public BufferedImage getImage()(Code) | | Get the image that this PDFImage generates.
a buffered image containing the decoded image data |
getSMask | public PDFImage getSMask()(Code) | | Return the soft mask associated with this image
|
getWidth | public int getWidth()(Code) | | Get the image's width
|
isImageMask | public boolean isImageMask()(Code) | | Return whether or not this is an image mask
|
parseData | protected BufferedImage parseData(byte[] data)(Code) | | Parse the image stream into a buffered image. Note that this is
guaranteed to be called after all the other setXXX methods have been
called.
|
setBitsPerComponent | protected void setBitsPerComponent(int bpc)(Code) | | Set the number of bits per component sample
|
setColorSpace | protected void setColorSpace(PDFColorSpace colorSpace)(Code) | | Set the colorspace associated with this image
|
setDecode | protected void setDecode(float[] decode)(Code) | | Set the decode array
|
setHeight | protected void setHeight(int height)(Code) | | Set the image's height
|
setImageMask | public void setImageMask(boolean imageMask)(Code) | | Set whether or not this is an image mask
|
setSMask | protected void setSMask(PDFImage sMask)(Code) | | Set the soft mask image
|
setWidth | protected void setWidth(int width)(Code) | | Set the image's width
|
|
|
|