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

◆ draw_polygon() [2/2]

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

Draws a polygon defined by an array of xtd::drawing::point_f structures.

Parameters
penxtd::drawing::pen that determines the color, width, and style of the polygon.
pointsArray of xtd::drawing::point_f structures that represent the vertices of the polygon.
Remarks
Every pair of two consecutive points in the array specifies a side of the polygon. In addition, if the last point and the first of the array point do not coincide, they specify the last side of the polygon.