Class PDInlinedImage
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.graphics.xobject.PDInlinedImage
-
public class PDInlinedImage extends java.lang.ObjectThis class represents an inlined image.- Version:
- $Revision: 1.6 $
- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description PDInlinedImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagecreateImage()This will take the inlined image information and create a java.awt.Image from it.java.awt.image.BufferedImagecreateImage(java.util.Map colorSpaces)This will take the inlined image information and create a java.awt.Image from it.byte[]getImageData()Get the bytes for the image.ImageParametersgetImageParameters()This will get the image parameters.voidsetImageData(byte[] value)Set the bytes that make up the image.voidsetImageParameters(ImageParameters imageParams)This will set the image parameters for this image.
-
-
-
Method Detail
-
getImageParameters
public ImageParameters getImageParameters()
This will get the image parameters.- Returns:
- The image parameters.
-
setImageParameters
public void setImageParameters(ImageParameters imageParams)
This will set the image parameters for this image.- Parameters:
imageParams- The imageParams.
-
getImageData
public byte[] getImageData()
Get the bytes for the image.- Returns:
- The image data.
-
setImageData
public void setImageData(byte[] value)
Set the bytes that make up the image.- Parameters:
value- The image data.
-
createImage
public java.awt.image.BufferedImage createImage() throws java.io.IOExceptionThis will take the inlined image information and create a java.awt.Image from it.- Returns:
- The image that this object represents.
- Throws:
java.io.IOException- If there is an error creating the image.
-
createImage
public java.awt.image.BufferedImage createImage(java.util.Map colorSpaces) throws java.io.IOExceptionThis will take the inlined image information and create a java.awt.Image from it.- Parameters:
colorSpaces- The ColorSpace dictionary from the current resources, if any.- Returns:
- The image that this object represents.
- Throws:
java.io.IOException- If there is an error creating the image.
-
-