GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / DrawFilledPolygon Method
GdPicture image identifier.
Array of System.Drawing.Point that specifies the vertices of the polygon.
Color of the filled polygon. A suitable color value can be obtained by using the ARGB() method.
Specifies how to fill a closed area that is within another closed area and that is created when the polygon or path passes over itself.A member of the Drawing2D.FillMode enumeration.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
DrawFilledPolygon Method (GdPictureImaging)
In This Topic
Draws a filled polygon on a GdPicture image.
Syntax
'Declaration
 
Public Function DrawFilledPolygon( _
   ByVal ImageID As Integer, _
   ByVal arPoints() As Point, _
   ByVal FillColor As Color, _
   ByVal FillMD As FillMode, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawFilledPolygon( 
   int ImageID,
   Point[] arPoints,
   Color FillColor,
   FillMode FillMD,
   bool AntiAlias
)
public function DrawFilledPolygon( 
    ImageID: Integer;
    arPoints: Pointarray of;
    FillColor: Color;
    FillMD: FillMode;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawFilledPolygon( 
   ImageID : int,
   arPoints : Point[],
   FillColor : Color,
   FillMD : FillMode,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawFilledPolygon( 
   int ImageID,
   Point[]* arPoints,
   Color FillColor,
   FillMode FillMD,
   bool AntiAlias
) 
public:
GdPictureStatus DrawFilledPolygon( 
   int ImageID,
   array<Point>^ arPoints,
   Color FillColor,
   FillMode FillMD,
   bool AntiAlias
) 

Parameters

ImageID
GdPicture image identifier.
arPoints
Array of System.Drawing.Point that specifies the vertices of the polygon.
FillColor
Color of the filled polygon. A suitable color value can be obtained by using the ARGB() method.
FillMD
Specifies how to fill a closed area that is within another closed area and that is created when the polygon or path passes over itself.A member of the Drawing2D.FillMode enumeration.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

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