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

◆ fill_polygon() [4/4]

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

Fills the interior of a polygon defined by an array of points specified by xtd::drawing::point_f structures using the specified fill mode.

Parameters
brushxtd::drawing::brush that determines the characteristics of the fill.
pointsArray of xtd::drawing::point_f structures that represent the vertices of the polygon to fill.
fill_modeMember of the xtd::drawing::drawing_2d::fill_mode enumeration that determines the style of the fill.
Remarks
Every two consecutive points in the array specify a side of the polygon. In addition, if the last point and the first point do not coincide, they specify the closing side of the polygon.