public class ImageRawPNGAdapter extends AbstractImageAdapter
image
Constructor and Description |
---|
ImageRawPNGAdapter(org.apache.xmlgraphics.image.loader.impl.ImageRawPNG image,
java.lang.String key)
Creates a new PDFImage from an Image instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerComponent()
Get the bits per color component for this image.
|
PDFDeviceColorSpace |
getColorSpace()
Get the color space for this image.
|
java.lang.String |
getFilterHint()
Returns a hint in form of a String (Possible values from PDFFilterList)
indicating which filter setup should be used to encode the object.
|
PDFICCStream |
getICCStream()
Get the ICC stream for this image.
|
java.lang.String |
getMask()
Get the PDF reference for a bitmap mask.
|
PDFFilter |
getPDFFilter()
Get the PDF Filter to be applied to the image.
|
java.lang.String |
getSoftMask() |
PDFReference |
getSoftMaskReference()
Get the PDF reference for a soft mask.
|
PDFColor |
getTransparentColor()
Get the transparent color.
|
boolean |
isTransparent()
Check if this image has a transparent color transparency.
|
void |
outputContents(java.io.OutputStream out)
Writes the raw, unencoded contents of the image to a given output stream.
|
void |
populateXObjectDictionary(PDFDictionary dict)
Populates the XObject's dictionary with additional values.
|
void |
setup(PDFDocument doc)
Setup the PDF image for the current document.
|
disallowMultipleFilters, getEffectiveICCProfile, getHeight, getImageColorSpace, getKey, getWidth, isInverted, isPS, multipleFiltersAllowed, populateXObjectDictionaryForIndexColorModel, toPDFColorSpace
public ImageRawPNGAdapter(org.apache.xmlgraphics.image.loader.impl.ImageRawPNG image, java.lang.String key)
image
- the imagekey
- XObject keypublic void setup(PDFDocument doc)
setup
in interface PDFImage
setup
in class AbstractImageAdapter
doc
- the PDF parent document
(todo) Remove this and delegate to the XObjectpublic PDFDeviceColorSpace getColorSpace()
public int getBitsPerComponent()
public boolean isTransparent()
isTransparent
in interface PDFImage
isTransparent
in class AbstractImageAdapter
public PDFColor getTransparentColor()
getTransparentColor
in interface PDFImage
getTransparentColor
in class AbstractImageAdapter
public java.lang.String getMask()
getMask
in interface PDFImage
getMask
in class AbstractImageAdapter
public java.lang.String getSoftMask()
getSoftMask
in class AbstractImageAdapter
public PDFReference getSoftMaskReference()
getSoftMaskReference
in interface PDFImage
getSoftMaskReference
in class AbstractImageAdapter
public PDFFilter getPDFFilter()
public void outputContents(java.io.OutputStream out) throws java.io.IOException
out
- OutputStream to write tojava.io.IOException
- if there creating streampublic PDFICCStream getICCStream()
getICCStream
in interface PDFImage
getICCStream
in class AbstractImageAdapter
public java.lang.String getFilterHint()
public void populateXObjectDictionary(PDFDictionary dict)
AbstractImageAdapter
populateXObjectDictionary
in interface PDFImage
populateXObjectDictionary
in class AbstractImageAdapter
dict
- the dictionary to fillCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.