IPdfBoxGraphics2DPaintApplierpublic class PdfBoxGraphics2DPaintApplier extends Object implements IPdfBoxGraphics2DPaintApplier
IPdfBoxGraphics2DPaintApplier.IPaintEnv| Modifier and Type | Field | 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 org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState |
pdExtendedGraphicsState |
|
protected org.apache.pdfbox.pdmodel.PDResources |
resources |
| Constructor | Description |
|---|---|
PdfBoxGraphics2DPaintApplier() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
applyAsStrokingColor(Color color) |
|
org.apache.pdfbox.pdmodel.graphics.shading.PDShading |
applyPaint(Paint paint,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
AffineTransform tf,
IPdfBoxGraphics2DPaintApplier.IPaintEnv env) |
Apply the paint on the ContentStream
|
protected org.apache.pdfbox.cos.COSArray |
buildType2Functions(Color[] colors,
org.apache.pdfbox.cos.COSArray domain,
org.apache.pdfbox.cos.COSArray encode) |
|
protected org.apache.pdfbox.pdmodel.common.function.PDFunctionType3 |
buildType3Function(Color[] colors,
float[] fractions) |
|
protected <T> T |
getPropertyValue(Object obj,
String propertyGetter) |
Get a property value from an object using reflection
|
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
public org.apache.pdfbox.pdmodel.graphics.shading.PDShading applyPaint(Paint paint, org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, AffineTransform tf, IPdfBoxGraphics2DPaintApplier.IPaintEnv env) throws IOException
IPdfBoxGraphics2DPaintApplierapplyPaint in interface IPdfBoxGraphics2DPaintApplierpaint - the paint which should be appliedcontentStream - the content stream to apply the paint ontf - the current transform of the Graphics2D relative to the
contentStream default coordinate space.env - Environment for mapping the paint.IOException - if its not possible to write the paint into the contentStreamprotected void applyAsStrokingColor(Color color) throws IOException
IOExceptionprotected org.apache.pdfbox.pdmodel.common.function.PDFunctionType3 buildType3Function(Color[] colors, float[] fractions)
protected org.apache.pdfbox.cos.COSArray buildType2Functions(Color[] colors, org.apache.pdfbox.cos.COSArray domain, org.apache.pdfbox.cos.COSArray encode)
Copyright © 2017. All rights reserved.