public class CompositeImage
extends java.lang.Object
| Constructor and Description |
|---|
CompositeImage(java.awt.image.BufferedImage baseImage,
java.awt.image.BufferedImage smaskImage)
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.awt.image.BufferedImage |
createStencilMaskedImage(COSArray decodeArray)
This method applies the specified stencil mask to a given image and returns a new BufferedImage
whose alpha values are computed from the stencil mask (smask) image.
|
public CompositeImage(java.awt.image.BufferedImage baseImage,
java.awt.image.BufferedImage smaskImage)
baseImage - the base Image.smaskImage - the transparency image.public java.awt.image.BufferedImage createMaskedImage(COSArray decodeArray) throws java.io.IOException
decodeArray - the decode arrayjava.io.IOException - if something went wrongpublic java.awt.image.BufferedImage createStencilMaskedImage(COSArray decodeArray)
decodeArray - the decode array