GdPicture.NET Reference Guide
DrawPolygon Method





GdPicture14 Namespace > GdPictureImaging Class : DrawPolygon Method
GdPicture Image Identifier.
Array of System.Drawing.Point that specifies the vertices of the polygon.
The width in pixels of the pen used to draw the polygon.
Color of the polygon. A suitable color value can be obtained by using the ARGB() method.
Set to True to apply the Antialiasing algorithm else False.
Draws a polygon on a GdPicture image.
Syntax
'Declaration
 
Public Function DrawPolygon( _
   ByVal ImageID As Integer, _
   ByVal arPoints() As Point, _
   ByVal PenWidth As Integer, _
   ByVal PenColor As Color, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public function DrawPolygon( 
    ImageID: Integer;
    arPoints: Pointarray of;
    PenWidth: Integer;
    PenColor: Color;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawPolygon( 
   ImageID : int,
   arPoints : Point[],
   PenWidth : int,
   PenColor : Color,
   AntiAlias : boolean
) : GdPictureStatus;

Parameters

ImageID
GdPicture Image Identifier.
arPoints
Array of System.Drawing.Point that specifies the vertices of the polygon.
PenWidth
The width in pixels of the pen used to draw the polygon.
PenColor
Color of the polygon. A suitable color value can be obtained by using the ARGB() method.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
If the first and last coordinates in the points array are not identical, a line is drawn between them to close the polygon.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
ARGB(Byte,Byte,Byte,Byte) Method