Share via


Gdi::Polygon_I (Windows Embedded CE 6.0)

1/6/2010

This method draws a polygon consisting of two or more vertices connected by straight lines. The current pen outlines the polygon, and the current brush fills the polygon using the specified polygon fill mode.

Syntax

static WINGDIAPI BOOL WINAPI Polygon_I(
  HDC hdc, 
  const POINT* lpPoints, 
  int nCount
);

Parameters

  • hdc
    [in] Handle to the device context.
  • lpPoints
    [in] Long pointer to an array of POINT structures that specify the vertices of the polygon.
  • nCount
    [in] Integer that specifies the number of vertices in the array.

    This value must be greater than or equal to 2.

Return Value

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

This method is an internal version of the Polygon function.

The polygon is closed by drawing a line from the last vertex to the first.

Gdi::Polygon_I neither uses nor updates the current position.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Gdi
Polygon
Gdi::Polyline_I
POINT