Package de.rototor.pdfbox.graphics2d
Klasse PdfBoxGraphics2DPaintApplier.PaintApplierState
java.lang.Object
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DPaintApplier.PaintApplierState
- Umschließende Klasse:
PdfBoxGraphics2DPaintApplier
Internal State of the PaintApplyer. Allows derived classes to
change some states.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected IPdfBoxGraphics2DColorMapperprotected Compositeprotected org.apache.pdfbox.pdmodel.PDPageContentStreamprotected org.apache.pdfbox.pdmodel.PDDocumentprotected IPdfBoxGraphics2DImageEncoderprotected AffineTransformThis transform is only set, when we apply a nested paint (e.g. a TilingPattern's paint)protected org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsStateprotected org.apache.pdfbox.pdmodel.PDResources -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidsetupLuminosityMasking(BufferedImage image, org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox) Setup a mask for the next fill/stroke operationvoidsetupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject formXObject) Setup a mask for the next fill/stroke operation.voidsetupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.PDXObject maskXObject, org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox) Setup a mask for the next fill/stroke operation.
-
Felddetails
-
document
protected org.apache.pdfbox.pdmodel.PDDocument document -
contentStream
protected org.apache.pdfbox.pdmodel.PDPageContentStream contentStream -
colorMapper
-
imageEncoder
-
resources
protected org.apache.pdfbox.pdmodel.PDResources resources -
pdExtendedGraphicsState
protected org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState pdExtendedGraphicsState -
composite
-
nestedTransform
This transform is only set, when we apply a nested paint (e.g. a TilingPattern's paint)
-
-
Konstruktordetails
-
PaintApplierState
public PaintApplierState()
-
-
Methodendetails
-
setupLuminosityMasking
public void setupLuminosityMasking(BufferedImage image, org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox) throws IOException Setup a mask for the next fill/stroke operation- Parameter:
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 mask- Löst aus:
IOException
-
setupLuminosityMasking
public void setupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject formXObject) throws IOException Setup a mask for the next fill/stroke operation. It will use the BBox of the formXObject.- Parameter:
formXObject- the mask form. It will be used to generate a grayscale image, that will directly map to the alpha channel.- Löst aus:
IOException
-
setupLuminosityMasking
public void setupLuminosityMasking(org.apache.pdfbox.pdmodel.graphics.PDXObject maskXObject, org.apache.pdfbox.pdmodel.common.PDRectangle boundingBox) throws IOException Setup a mask for the next fill/stroke operation.- Parameter:
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 mask- Löst aus:
IOException
-