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 PdfPatchRemarks
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
| Name | Description |
|---|---|
| PdfPatch(ReadOnlySpan<PdfPoint>, ReadOnlySpan<PdfColor>, ReadOnlySpan<PdfPoint>) | Initializes a new instance of the PdfPatch class. |
PdfPatch(ReadOnlySpan<PdfPoint>, ReadOnlySpan<PdfColor>, ReadOnlySpan<PdfPoint>)
PdfPatch.csInitializes a new instance of the PdfPatch class.
public PdfPatch(ReadOnlySpan<PdfPoint> boundaryPoints, ReadOnlySpan<PdfColor> cornerColors, ReadOnlySpan<PdfPoint> innerPoints = default)Parameters
boundaryPointsReadOnlySpan<PdfPoint>- The twelve points of the boundary, from the corner
p00. cornerColorsReadOnlySpan<PdfColor>- The colors of the four corners, in the order of the boundary.
innerPointsReadOnlySpan<PdfPoint>- The four inner control points of a tensor-product patch,
p11,p12,p22,p21;nullto compute them as a Coons patch does.
Properties
| Name | Description |
|---|---|
| BoundaryPoints | Gets the twelve points of the boundary. |
| Colors | Gets the colors of the four corners. |
| InnerPoints | Gets the four inner control points, or an empty span when they are those of a Coons patch. |
BoundaryPoints
PdfPatch.csGets the twelve points of the boundary.
public ReadOnlySpan<PdfPoint> BoundaryPoints { get; }Property value
Colors
PdfPatch.csInnerPoints
PdfPatch.csGets the four inner control points, or an empty span when they are those of a Coons patch.
public ReadOnlySpan<PdfPoint> InnerPoints { get; }