PdfPatch Class

A patch of a Coons or tensor-product patch mesh (ISO 32000-2, 8.7.4.5.7 and 8.7.4.5.8): four cubic Bézier curves around the patch and a color at each corner.

public sealed class PdfPatch

Remarks

The twelve boundary points go around the patch: the corner p00, then the curve up to the corner p03, the curve across to p33, the curve down to p30 and the curve back to p00 (figure 49 of the specification), each curve given by its two control points and its end. The colors are those of the corners p00, p03, p33 and p30.

Constructors

NameDescription
PdfPatch(ReadOnlySpan<PdfPoint>, ReadOnlySpan<PdfColor>, ReadOnlySpan<PdfPoint>)Initializes a new instance of the PdfPatch class.

PdfPatch(ReadOnlySpan<PdfPoint>, ReadOnlySpan<PdfColor>, ReadOnlySpan<PdfPoint>)

PdfPatch.cs

Initializes a new instance of the PdfPatch class.

public PdfPatch(ReadOnlySpan<PdfPoint> boundaryPoints, ReadOnlySpan<PdfColor> cornerColors, ReadOnlySpan<PdfPoint> innerPoints = default)

Parameters

boundaryPoints ReadOnlySpan<PdfPoint>
The twelve points of the boundary, from the corner p00.
cornerColors ReadOnlySpan<PdfColor>
The colors of the four corners, in the order of the boundary.
innerPoints ReadOnlySpan<PdfPoint>
The four inner control points of a tensor-product patch, p11, p12, p22, p21; null to compute them as a Coons patch does.

Properties

NameDescription
BoundaryPointsGets the twelve points of the boundary.
ColorsGets the colors of the four corners.
InnerPointsGets the four inner control points, or an empty span when they are those of a Coons patch.

BoundaryPoints

PdfPatch.cs

Gets the twelve points of the boundary.

public ReadOnlySpan<PdfPoint> BoundaryPoints { get; }

Gets the colors of the four corners.

public ReadOnlySpan<PdfColor> Colors { get; }

InnerPoints

PdfPatch.cs

Gets the four inner control points, or an empty span when they are those of a Coons patch.

public ReadOnlySpan<PdfPoint> InnerPoints { get; }