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

◆ fill_closed_curve() [3/6]

void xtd::drawing::graphics::fill_closed_curve ( const xtd::drawing::brush brush,
const std::vector< xtd::drawing::point > &  points,
xtd::drawing::drawing_2d::fill_mode  fill_mode 
)

Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point structures using the specified fill mode.

Parameters
brushA xtd::drawing::brush that determines the characteristics of the fill.
pointsArray of xtd::drawing::point structures that define the spline.
fill_modeMember of the xtd::drawing::drawing_2d::fill_mode enumeration that determines how the curve is filled.
Remarks
This method fills the interior of a closed cardinal spline that passes through each point in the array. If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.
The array of points must contain at least four xtd::drawing::point structures.
This method uses a default tension of 0.0.