Polygon (gdi32)
Last changed: -82.242.53.247

.
Summary
The Polygon API

C# Signature:

[DllImport("gdi32.dll")]
static extern bool Polygon(IntPtr hdc, POINT [] lpPoints, int nCount);

VB.NET Signature:

<DllImport("gdi32.dll")> Private Shared Function Polygon( _
    ByVal hdc As Integer, _
    ByRef lpPoint As Object, _
    ByVal nCount As Integer) _
    As Integer

    End Function

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

        PostSynchro.Win32.POINTAPI[] TrianglePoints = {new POINT(XStart+5,0),
         new POINT(0, SignalHeight / 2),new POINT(XStart + 5, SignalHeight)};
        PostSynchro.Win32.Polygon(Hdc, TrianglePoints, 3);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
Polygon on MSDN