GdPicture.NET.14
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 Point, _
   ByVal PenWidth As Integer, _
   ByVal PenColor As Color, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawPolygon( 
   int ImageID,
   Point[] arPoints,
   int PenWidth,
   Color PenColor,
   bool AntiAlias
)
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;
public: GdPictureStatus DrawPolygon( 
   int ImageID,
   Point[]* arPoints,
   int PenWidth,
   Color PenColor,
   bool AntiAlias
) 
public:
GdPictureStatus DrawPolygon( 
   int ImageID,
   array<Point>^ arPoints,
   int PenWidth,
   Color PenColor,
   bool AntiAlias
) 

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