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

◆ add_curve() [5/6]

void xtd::drawing::drawing_2d::graphics_path::add_curve ( const std::vector< xtd::drawing::point > &  points,
size_t  offset,
size_t  number_of_segments,
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.
offsethe index of the element in the points array that is used as the first point in the curve.
number_of_segmentsThe number of segments used to draw the curve. A segment can be thought of as a line connecting two points.
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.
The curve begins at the point in the array specified by offset, and includes the number of points (segments) specified by number_of_segments.