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

◆ draw_curve() [4/8]

void xtd::drawing::graphics::draw_curve ( const pen pen,
const std::vector< xtd::drawing::point_f > &  points,
float  tension 
)

Draws a cardinal spline through a specified array of xtd::drawing::point_f structures using a specified tension.

Parameters
penxtd::drawing::pen that determines the color, width, and style of the curve.
pointsArray of xtd::drawing::point_f structures that define the spline.
tensionValue greater than or equal to 0.0F that specifies the tension of the curve.
Remarks
This method draws a cardinal spline that passes through each point in the array.
The array of points must contain at least three xtd::drawing::point_f structures for a curve to be drawn.
The tension parameter determines the shape of the spline. If the value of the tension parameter is 0.0F, this method draws straight line segments to connect the points. Usually, the tension parameter is less than or equal to 1.0F. Values over 1.0F produce unusual results.