XFINIUM.PDF Documentation
SetClip(PdfPath,PdfFillMode) Method



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class > SetClip Method : SetClip(PdfPath,PdfFillMode) Method
PdfPath that represents the new clip region.
Path fill mode.
Sets the clipping region of this graphics to the specified PdfPath.
Syntax
'Declaration
 
Public Overloads Sub SetClip( _
   ByVal path As PdfPath, _
   ByVal fillMode As PdfFillMode _
) 
'Usage
 
Dim instance As PdfGraphics
Dim path As PdfPath
Dim fillMode As PdfFillMode
 
instance.SetClip(path, fillMode)
public void SetClip( 
   PdfPath path,
   PdfFillMode fillMode
)
public:
void SetClip( 
   PdfPath^ path,
   PdfFillMode fillMode
) 

Parameters

path
PdfPath that represents the new clip region.
fillMode
Path fill mode.
Remarks
The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see SaveGraphicsState method) before setting a clipping path and restore the graphics state (see RestoreGraphicsState method) after the clipping path is no longer needed.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfGraphics Class
PdfGraphics Members
Overload List