Class ParserGraphicsState
Internal class which is essentially a CanvasGraphicsState which supports tracking of clipping path state and changes.
public class ParserGraphicsState : CanvasGraphicsState
- Inheritance
-
ParserGraphicsState
- Inherited Members
Methods
Clip(Path, int)
Intersects the current clipping path with the given path.
public virtual void Clip(Path path, int fillingRule)
Parameters
path
PathThe path to be intersected with the current clipping path.
fillingRule
intThe filling rule which should be applied to the given path. It should be either EVEN_ODD or NONZERO_WINDING
Remarks
Intersects the current clipping path with the given path. Note: Coordinates of the given path should be in the transformed user space.
GetClippingPath()
Getter for the current clipping path.
public virtual Path GetClippingPath()
Returns
- Path
The current clipping path.
Remarks
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 ( GetCtm() ).
SetClippingPath(Path)
Sets the current clipping path to the specified path.
public virtual void SetClippingPath(Path clippingPath)
Parameters
clippingPath
PathNew clipping path.
Remarks
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.
UpdateCtm(Matrix)
public override void UpdateCtm(Matrix newCtm)
Parameters
newCtm
Matrix