Method GetIntersectedPaths
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
GetIntersectedPaths()
Gets the paths that form this PdfClipRegion.
public IEnumerable<PdfPath> GetIntersectedPaths()
Returns
- IEnumerable<PdfPath>
A sequence of PdfPath instances that define this PdfClipRegion.
Remarks
A clip region consists of a sequence of intersected paths. The final clipping area is computed by applying each path in order. The following algorithm describes the process:
- Initialize the current clipping area to an infinite rectangle { -Infinity, -Infinity, Infinity, Infinity }.
- Enumerate the paths returned by GetIntersectedPaths() in order. The order is significant.
- Intersect the current clipping area with each PdfPath using the rule specified by its ClipMode property. Update the current clipping area with the result.
- After all paths have been processed, the resulting clipping area defines the portion of the page that lies inside the clip region.