iText 7 7.1.8 API
iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState Class Reference

Internal class which is essentially a iText.Kernel.Pdf.Canvas.CanvasGraphicsState which supports tracking of clipping path state and changes. More...

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

Public Member Functions

override void  UpdateCtm (Matrix newCtm)
  Updates current transformation matrix. More...
 
virtual void  Clip (Path path, int fillingRule)
  Intersects the current clipping path with the given path. More...
 
virtual Path  GetClippingPath ()
  Getter for the current clipping path. More...
 
virtual void  SetClippingPath (Path clippingPath)
  Sets the current clipping path to the specified path. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.Canvas.CanvasGraphicsState
  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 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

Internal class which is essentially a iText.Kernel.Pdf.Canvas.CanvasGraphicsState which supports tracking of clipping path state and changes.

Member Function Documentation

◆ Clip()

virtual void iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState.Clip ( Path  path,
int  fillingRule 
)
inlinevirtual

Intersects the current clipping path with the given path.

Intersects the current clipping path with the given path. Note: Coordinates of the given path should be in the transformed user space.

Parameters
path The path to be intersected with the current clipping path.
fillingRule The filling rule which should be applied to the given path. It should be either iText.Kernel.Pdf.Canvas.PdfCanvasConstants.FillingRule.EVEN_ODD or iText.Kernel.Pdf.Canvas.PdfCanvasConstants.FillingRule.NONZERO_WINDING

◆ GetClippingPath()

virtual Path iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState.GetClippingPath ( )
inlinevirtual

Getter for the current clipping path.

Getter for the current clipping path. Note: The returned clipping path is in the transformed user space, so if you want to get it in default user space, apply transformation matrix ( iText.Kernel.Pdf.Canvas.CanvasGraphicsState.GetCtm() ).

Returns
The current clipping path.

◆ SetClippingPath()

virtual void iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState.SetClippingPath ( Path  clippingPath )
inlinevirtual

Sets the current clipping path to the specified path.

Sets the current clipping path to the specified path. Note:This method doesn't modify existing clipping path, it simply replaces it with the new one instead.

Parameters
clippingPath New clipping path.

◆ UpdateCtm()

override void iText.Kernel.Pdf.Canvas.Parser.ParserGraphicsState.UpdateCtm ( Matrix  newCtm )
inlinevirtual

Updates current transformation matrix.

Parameters
newCtm new current transformation matrix.

Reimplemented from iText.Kernel.Pdf.Canvas.CanvasGraphicsState.