xtd 0.2.0
Loading...
Searching...
No Matches

◆ draw_bezier() [3/4]

void xtd::drawing::graphics::draw_bezier ( const pen pen,
int32  x1,
int32  y1,
int32  x2,
int32  y2,
int32  x3,
int32  y3,
int32  x4,
int32  y4 
)

Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.

Parameters
penxtd::drawing::pen structure that determines the color, width, and style of the curve.
x1The x-coordinate of the starting point of the curve.
y1The y-coordinate of the starting point of the curve.
x2The x-coordinate of the first control point of the curve.
y2The y-coordinate of the first control point of the curve.
x3The x-coordinate of the second control point of the curve.
y3The y-coordinate of the second control point of the curve.
x4The x-coordinate of the ending point of the curve.
y4The y-coordinate of the ending point of the curve.
Remarks
The Bézier curve is drawn from the first point to the fourth point. The second and third points are control points that determine the shape of the curve.