Skip to content

Latest commit

 

History

History

Clipping

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Set up clipping on a PDF canvas in C# and VB.NET

This sample shows how to use the current graphics path as a clip region of a canvas.

Description

Docotic.Pdf library provides methods to add vector graphics like lines, curves, and shapes to graphics path. You can set the current graphics path as a clip region of a canvas using the PdfCanvas.SetClip method.

Once you set a clip region, you can fill or stroke it. You can also just continue drawing on a canvas. When a canvas has a clip region, any part of a graphics, text and images that lay outside the clip region will not be visible.

See also