Share via


Gdi::Polygon_I

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.

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 Values

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 automatically by drawing a line from the last vertex to the first.

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

Polygon | Gdi::Polyline_I | POINT

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.