public class CompositeImage extends Object
Constructor and Description |
---|
CompositeImage(BufferedImage baseImage,
BufferedImage smaskImage)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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(BufferedImage baseImage, BufferedImage smaskImage)
baseImage
- the base Image.smaskImage
- the transparency image.public BufferedImage createMaskedImage(COSArray decodeArray) throws IOException
decodeArray
- the decode arrayIOException
- if something went wrongpublic BufferedImage createStencilMaskedImage(COSArray decodeArray)
decodeArray
- the decode arrayCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.