Curve

Overview

Curve is a class in Aspose.PDF FOSS for .NET. Inherits from: Shape.

A Bézier curve shape.

This class provides 3 methods for working with Curve objects in .NET programs. Available methods include: CheckBounds, Curve. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Cx1, Cx2, Cy1, Cy2, GraphInfo, PositionArray, and 5 more.

Properties

NameTypeAccessDescription
X1doubleRead/WriteGets or sets the x1.
Y1doubleRead/WriteGets or sets the y1.
Cx1doubleRead/WriteGets or sets the cx1.
Cy1doubleRead/WriteGets or sets the cy1.
Cx2doubleRead/WriteGets or sets the cx2.
Cy2doubleRead/WriteGets or sets the cy2.
X2doubleRead/WriteGets or sets the x2.
Y2doubleRead/WriteGets or sets the y2.
PositionArrayfloat[]Read/WriteCurve control points as [x1, y1, cx1, cy1, cx2, cy2, x2, y2].
GraphInfoAspose.Pdf.GraphInfoRead/WriteGets or sets the graph info.
TextAspose.Pdf.Text.TextFragment?Read/WriteOptional text label rendered with the shape.

Methods

SignatureDescription
Curve(x1: double, y1: double, cx1: double, cy1: double, cx2: double, cy2: double, x2: double, y2: double)Create a cubic Bézier curve from (x1,y1) to (x2,y2) with control points (cx1,cy1) and (cx2,cy2).
Curve(positionArray: float[])Constructor matching the public API: Curve(float[] positionArray) where positionArray = [x1, y1, cx1, cy1, cx2, cy2, x2, y2].
CheckBounds(containerWidth: double, containerHeight: double)Whether every control point lies within the container’s origin-anchored AABB.

See Also