iText 7 7.1.9 API
iText.Kernel.Pdf.Canvas.CanvasGraphicsState Class Reference

This class is designed for internal usage. More...

Inheritance diagram for iText.Kernel.Pdf.Canvas.CanvasGraphicsState:
iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState

Public Member Functions

  CanvasGraphicsState (iText.Kernel.Pdf.Canvas.CanvasGraphicsState source)
  Copy constructor. More...
 
virtual void  UpdateFromExtGState (PdfDictionary extGState)
  Updates this object with the values from a dictionary. More...
 
virtual Matrix  GetCtm ()
 
Returns
current transformation matrix.

 
virtual void  UpdateCtm (float a, float b, float c, float d, float e, float f)
  Updates current transformation matrix. More...
 
virtual void  UpdateCtm (Matrix newCtm)
  Updates current transformation matrix. More...
 
virtual Color  GetFillColor ()
 
virtual void  SetFillColor (Color fillColor)
 
virtual Color  GetStrokeColor ()
 
virtual void  SetStrokeColor (Color strokeColor)
 
virtual float  GetLineWidth ()
 
virtual void  SetLineWidth (float lineWidth)
 
virtual int  GetLineCapStyle ()
 
virtual void  SetLineCapStyle (int lineCapStyle)
 
virtual int  GetLineJoinStyle ()
 
virtual void  SetLineJoinStyle (int lineJoinStyle)
 
virtual float  GetMiterLimit ()
 
virtual void  SetMiterLimit (float miterLimit)
 
virtual PdfArray  GetDashPattern ()
 
virtual void  SetDashPattern (PdfArray dashPattern)
 
virtual PdfName  GetRenderingIntent ()
 
virtual void  SetRenderingIntent (PdfName renderingIntent)
 
virtual float  GetFontSize ()
 
virtual void  SetFontSize (float fontSize)
 
virtual PdfFont  GetFont ()
 
virtual void  SetFont (PdfFont font)
 
virtual int  GetTextRenderingMode ()
 
virtual void  SetTextRenderingMode (int textRenderingMode)
 
virtual float  GetTextRise ()
 
virtual void  SetTextRise (float textRise)
 
virtual float  GetFlatnessTolerance ()
 
virtual void  SetFlatnessTolerance (float flatnessTolerance)
 
virtual void  SetWordSpacing (float wordSpacing)
 
virtual float  GetWordSpacing ()
 
virtual void  SetCharSpacing (float characterSpacing)
 
virtual float  GetCharSpacing ()
 
virtual float  GetLeading ()
 
virtual void  SetLeading (float leading)
 
virtual float  GetHorizontalScaling ()
 
virtual void  SetHorizontalScaling (float scale)
 
virtual bool  GetStrokeOverprint ()
 
virtual bool  GetFillOverprint ()
 
virtual int  GetOverprintMode ()
 
virtual PdfObject  GetBlackGenerationFunction ()
 
virtual PdfObject  GetBlackGenerationFunction2 ()
 
virtual PdfObject  GetUnderColorRemovalFunction ()
 
virtual PdfObject  GetUnderColorRemovalFunction2 ()
 
virtual PdfObject  GetTransferFunction ()
 
virtual PdfObject  GetTransferFunction2 ()
 
virtual PdfObject  GetHalftone ()
 
virtual ? float  GetSmoothnessTolerance ()
 
virtual bool  GetAutomaticStrokeAdjustment ()
 
virtual PdfObject  GetBlendMode ()
 
virtual PdfObject  GetSoftMask ()
 
virtual float  GetStrokeOpacity ()
 
virtual float  GetFillOpacity ()
 
virtual bool  GetAlphaIsShape ()
 
virtual bool  GetTextKnockout ()
 
virtual PdfObject  GetHTP ()
 
virtual void  UpdateFromExtGState (PdfExtGState extGState)
  Updates current graphic state with values from extended graphic state dictionary. More...
 

Detailed Description

This class is designed for internal usage.

This class is designed for internal usage.
Use PdfExtGState class and PdfCanvas::setExtGState() method for setting extended graphics properties.

Constructor & Destructor Documentation

◆ CanvasGraphicsState()

iText.Kernel.Pdf.Canvas.CanvasGraphicsState.CanvasGraphicsState ( iText.Kernel.Pdf.Canvas.CanvasGraphicsState  source )
inline

Copy constructor.

Parameters
source the Graphics State to copy from

Member Function Documentation

◆ UpdateCtm() [1/2]

virtual void iText.Kernel.Pdf.Canvas.CanvasGraphicsState.UpdateCtm ( float  a,
float  b,
float  c,
float  d,
float  e,
float  f 
)
inlinevirtual

Updates current transformation matrix.

◆ UpdateCtm() [2/2]

virtual void iText.Kernel.Pdf.Canvas.CanvasGraphicsState.UpdateCtm ( Matrix  newCtm )
inlinevirtual

Updates current transformation matrix.

Parameters
newCtm new current transformation matrix.

Reimplemented in iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState.

◆ UpdateFromExtGState() [1/2]

virtual void iText.Kernel.Pdf.Canvas.CanvasGraphicsState.UpdateFromExtGState ( PdfDictionary  extGState )
inlinevirtual

Updates this object with the values from a dictionary.

Parameters
extGState the dictionary containing source parameters

◆ UpdateFromExtGState() [2/2]

virtual void iText.Kernel.Pdf.Canvas.CanvasGraphicsState.UpdateFromExtGState ( PdfExtGState  extGState )
inlinevirtual

Updates current graphic state with values from extended graphic state dictionary.

Parameters
extGState the wrapper around the extended graphic state dictionary