GdPicture.NET.14.API
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.





In This Topic
DrawPolygon Method (GdPictureImaging)
In This Topic
Draws a polygon on a GdPicture image.
Syntax
'Declaration
 
Public Function DrawPolygon( _
   ByVal ImageID As Integer, _
   ByVal arPoints() As GdPicturePoint, _
   ByVal PenWidth As Integer, _
   ByVal PenColor As GdPictureColor, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public function DrawPolygon( 
    ImageID: Integer;
    arPoints: GdPicturePointarray of;
    PenWidth: Integer;
    PenColor: GdPictureColor;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawPolygon( 
   ImageID : int,
   arPoints : GdPicturePoint[],
   PenWidth : int,
   PenColor : GdPictureColor,
   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.

This method requires the Image Documents component to run.

See Also