• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct CurveTo

A "curve to" drawing command representing a cubic Bézier segment. Draws from the current point using two explicit control points to the specified endpoint.

  • (X1, Y1) — first control point.
  • (X2, Y2) — second control point.
  • (X3, Y3) — endpoint (new current point).

TrueType quadratic Bézier segments are converted to this cubic form before being emitted (see TtfOutlineRenderer). Coordinates are in font design units.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DRIT.Drawing.Font.Rendering
Assembly: DRIT.Drawing.dll
Syntax
public readonly struct CurveTo

Constructors

CurveTo(double, double, double, double, double, double)

Initializes a new CurveTo with the specified control points and endpoint.

Declaration
public CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)
Parameters
Type Name Description
double x1

First cubic control point X.

double y1

First cubic control point Y.

double x2

Second cubic control point X.

double y2

Second cubic control point Y.

double x3

Endpoint X.

double y3

Endpoint Y.

Properties

X1

First cubic control point X.

Declaration
public double X1 { get; }
Property Value
Type Description
double

X2

Second cubic control point X.

Declaration
public double X2 { get; }
Property Value
Type Description
double

X3

Endpoint X (becomes new current point).

Declaration
public double X3 { get; }
Property Value
Type Description
double

Y1

First cubic control point Y.

Declaration
public double Y1 { get; }
Property Value
Type Description
double

Y2

Second cubic control point Y.

Declaration
public double Y2 { get; }
Property Value
Type Description
double

Y3

Endpoint Y (becomes new current point).

Declaration
public double Y3 { get; }
Property Value
Type Description
double

Methods

ToString()

Returns a string representation of this curve command.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX