Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / PushClip Method / PushClip(IPath) Method
The IPath object defining clipping area.

In This Topic
    PushClip(IPath) Method
    In This Topic
    Specifies a path to which all subsequent drawing operations are clipped.

    The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:

    using (g.PushClip(...)) ... in which case the clipping region will be removed when the returned object is disposed.
    Syntax
    'Declaration
     
    Public Overloads Function PushClip( _
       ByVal clipPath As IPath _
    ) As GcGraphics.Clip
    public GcGraphics.Clip PushClip( 
       IPath clipPath
    )

    Parameters

    clipPath
    The IPath object defining clipping area.

    Return Value

    The GcGraphics.Clip object that removes the clipping when disposed.
    See Also