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

◆ add_curve() [4/6]

void xtd::drawing::drawing_2d::graphics_path::add_curve ( const std::vector< xtd::drawing::point_f > &  points,
float  tension 
)

Adds a spline curve to the current figure.

Parameters
pointsAn array of xtd::drawing::point_f structures that represents the points that define the curve.
tensionA value that specifies the amount that the curve bends between control points. Values greater than 1 produce unpredictable results.
Remarks
The user must keep the original points if they are needed. The original points are converted to cubic Bézier control points internally, therefore there is no mechanism for returning the original points.