Table of Contents

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:

  1. Initialize the current clipping area to an infinite rectangle { -Infinity, -Infinity, Infinity, Infinity }.
  2. Enumerate the paths returned by GetIntersectedPaths() in order. The order is significant.
  3. Intersect the current clipping area with each PdfPath using the rule specified by its ClipMode property. Update the current clipping area with the result.
  4. After all paths have been processed, the resulting clipping area defines the portion of the page that lies inside the clip region.