public static class PdfBoxGraphics2DPaintApplier.PaintApplierState extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IPdfBoxGraphics2DColorMapper |
colorMapper |
protected Composite |
composite |
protected org.apache.pdfbox.pdmodel.PDPageContentStream |
contentStream |
protected org.apache.pdfbox.pdmodel.PDDocument |
document |
protected IPdfBoxGraphics2DImageEncoder |
imageEncoder |
protected AffineTransform |
nestedTransform
This transform is only set, when we apply a nested
paint (e.g. a TilingPattern's paint)
|
protected org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState |
pdExtendedGraphicsState |
protected org.apache.pdfbox.pdmodel.PDResources |
resources |
| Constructor and Description |
|---|
PaintApplierState() |
| Modifier and Type | Method and Description |
|---|---|
void |
setupLuminosityMasking(BufferedImage image,
org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox)
Setup a mask for the next fill/stroke operation
|
void |
setupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject formXObject)
Setup a mask for the next fill/stroke operation.
|
void |
setupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.PDXObject maskXObject,
org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox)
Setup a mask for the next fill/stroke operation.
|
protected org.apache.pdfbox.pdmodel.PDDocument document
protected org.apache.pdfbox.pdmodel.PDPageContentStream contentStream
protected IPdfBoxGraphics2DColorMapper colorMapper
protected IPdfBoxGraphics2DImageEncoder imageEncoder
protected org.apache.pdfbox.pdmodel.PDResources resources
protected org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState pdExtendedGraphicsState
protected Composite composite
protected AffineTransform nestedTransform
public void setupLuminosityMasking(BufferedImage image, org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox) throws IOException
image - the mask image. It will be used to generate a grayscale image, that
will directly map to the alpha channel.boundingBox - The bounding box of the masking. I.e. where to apply the maskIOExceptionpublic void setupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject formXObject)
throws IOException
formXObject - the mask form. It will be used to generate a grayscale image, that
will directly map to the alpha channel.IOExceptionpublic void setupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.PDXObject maskXObject,
org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox)
throws IOException
maskXObject - a PDXObject (form or image) which generates a grayscale image for the masking.
This image will directly map to the alpha channel.boundingBox - The bounding box of the masking. I.e. where to apply the maskIOExceptionCopyright © 2022. All rights reserved.