|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.xobject.CompositeImage
public class CompositeImage
This class is responsible for combining a base image with an SMask-based transparency image to form a composite image. See section 11.5 of the pdf specification for details on Soft Masks.
Briefly however, an Smask is a supplementary greyscale image whose RGB-values define a transparency mask which, when combined appropriately with the base image, allows per-pixel transparency to be applied. Note that Smasks are not required for any image and if the smask is not present in the pdf file, the image will have no transparent pixels.
Constructor Summary | |
---|---|
CompositeImage(java.awt.image.BufferedImage baseImage,
java.awt.image.BufferedImage smaskImage)
Standard constructor. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
createMaskedImage(COSArray decodeArray)
This method applies the specified transparency mask to a given image and returns a new BufferedImage whose alpha values are computed from the transparency mask (smask) image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeImage(java.awt.image.BufferedImage baseImage, java.awt.image.BufferedImage smaskImage)
baseImage
- the base Image.smaskImage
- the transparency image.Method Detail |
---|
public java.awt.image.BufferedImage createMaskedImage(COSArray decodeArray) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |