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

◆ draw_bezier() [1/4]

void xtd::drawing::graphics::draw_bezier ( const xtd::drawing::pen pen,
const xtd::drawing::point pt1,
const xtd::drawing::point pt2,
const xtd::drawing::point pt3,
const xtd::drawing::point pt4 
)

Draws a Bézier spline defined by four Point structures.

Parameters
penxtd::drawing::pen structure that determines the color, width, and style of the curve.
pt1xtd::drawing::point structure that represents the starting point of the curve.
pt2xtd::drawing::point structure that represents the first control point for the curve.
pt3xtd::drawing::point structure that represents the second control point for the curve.
pt4xtd::drawing::point structure that represents 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.