Polygon function Null safety gdi32
The Polygon function draws a polygon consisting of two or more vertices connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode.
BOOL Polygon(
HDC hdc,
const POINT *apt,
int cpt
);
Implementation
int Polygon(int hdc, Pointer<POINT> apt, int cpt) {
final _Polygon = _gdi32.lookupFunction<
Int32 Function(IntPtr hdc, Pointer<POINT> apt, Int32 cpt),
int Function(int hdc, Pointer<POINT> apt, int cpt)>('Polygon');
return _Polygon(hdc, apt, cpt);
}