D2D1_BEZIER_SEGMENT structure (d2d1.h)

Represents a cubic bezier segment drawn between two points.


typedef struct D2D1_BEZIER_SEGMENT {
  D2D1_POINT_2F point1;
  D2D1_POINT_2F point2;
  D2D1_POINT_2F point3;



Type: D2D1_POINT_2F

The first control point for the Bezier segment.


Type: D2D1_POINT_2F

The second control point for the Bezier segment.


Type: D2D1_POINT_2F

The end point for the Bezier segment.


A cubic Bezier curve is defined by four points: a start point, an end point (point3), and two control points (point1 and point2). A Bezier segment does not contain a property for the starting point of the curve; it defines only the end point. The beginning point of the curve is the current point of the path to which the Bezier curve is added.

The two control points of a cubic Bezier curve behave like magnets, attracting portions of what would otherwise be a straight line toward themselves and producing a curve. The first control point, point1, affects the beginning portion of the curve; the second control point, point2, affects the ending portion of the curve.

Note  The curve doesn't necessarily pass through either of the control points; each control point moves its portion of the line toward itself, but not through itself.


Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1.h