public class CanvasGraphicsState extends Object implements Serializable
PdfExtGState
class and PdfCanvas#setExtGState()
method for setting extended graphics properties.
Modifier | Constructor and Description |
---|---|
protected |
CanvasGraphicsState()
Internal empty and default constructor.
|
|
CanvasGraphicsState(CanvasGraphicsState source)
Copy constructor.
|
protected CanvasGraphicsState()
public CanvasGraphicsState(CanvasGraphicsState source)
source
- the Graphics State to copy from
public void updateFromExtGState(PdfDictionary extGState)
extGState
- the dictionary containing source parameters
public Matrix getCtm()
public void updateCtm(float a, float b, float c, float d, float e, float f)
a
- element at (1,1) of the transformation matrix
b
- element at (1,2) of the transformation matrix
c
- element at (2,1) of the transformation matrix
d
- element at (2,2) of the transformation matrix
e
- element at (3,1) of the transformation matrix
f
- element at (3,2) of the transformation matrix
public void updateCtm(Matrix newCtm)
newCtm
- new current transformation matrix.
public Color getFillColor()
public void setFillColor(Color fillColor)
public Color getStrokeColor()
public void setStrokeColor(Color strokeColor)
public float getLineWidth()
public void setLineWidth(float lineWidth)
public int getLineCapStyle()
public void setLineCapStyle(int lineCapStyle)
public int getLineJoinStyle()
public void setLineJoinStyle(int lineJoinStyle)
public float getMiterLimit()
public void setMiterLimit(float miterLimit)
public PdfArray getDashPattern()
public void setDashPattern(PdfArray dashPattern)
public PdfName getRenderingIntent()
public void setRenderingIntent(PdfName renderingIntent)
public float getFontSize()
public void setFontSize(float fontSize)
public PdfFont getFont()
public void setFont(PdfFont font)
public int getTextRenderingMode()
public void setTextRenderingMode(int textRenderingMode)
public float getTextRise()
public void setTextRise(float textRise)
public float getFlatnessTolerance()
public void setFlatnessTolerance(float flatnessTolerance)
public void setWordSpacing(float wordSpacing)
public float getWordSpacing()
public void setCharSpacing(float characterSpacing)
public float getCharSpacing()
public float getLeading()
public void setLeading(float leading)
public float getHorizontalScaling()
public void setHorizontalScaling(float scale)
public boolean getStrokeOverprint()
public boolean getFillOverprint()
public int getOverprintMode()
public PdfObject getBlackGenerationFunction()
public PdfObject getBlackGenerationFunction2()
public PdfObject getUnderColorRemovalFunction()
public PdfObject getUnderColorRemovalFunction2()
public PdfObject getTransferFunction()
public PdfObject getTransferFunction2()
public PdfObject getHalftone()
public Float getSmoothnessTolerance()
public boolean getAutomaticStrokeAdjustment()
public PdfObject getBlendMode()
public PdfObject getSoftMask()
public float getStrokeOpacity()
public float getFillOpacity()
public boolean getAlphaIsShape()
public boolean getTextKnockout()
public PdfObject getHTP()
public void updateFromExtGState(PdfExtGState extGState)
extGState
- the wrapper around the extended graphic state dictionary
Copyright © 1998–2020 iText Group NV. All rights reserved.