GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / DrawFilledEllipse Method / DrawFilledEllipse(Int32,Single,Single,Single,Single,Color,Boolean) Method
GdPicture image identifier.
Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse.
Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse.
Specifies the width of the rectangle that bounds the ellipse.
Specifies the height of the rectangle that bounds the ellipse.
Color of the filled ellipse.
Set to True to apply the Antialiasing algorithm else False.
Example





In This Topic
DrawFilledEllipse(Int32,Single,Single,Single,Single,Color,Boolean) Method
In This Topic
Draws a filled ellipse on a GdPicture image.
Syntax
'Declaration
 
Public Overloads Function DrawFilledEllipse( _
   ByVal ImageID As Integer, _
   ByVal DstLeft As Single, _
   ByVal DstTop As Single, _
   ByVal Width As Single, _
   ByVal Height As Single, _
   ByVal FillColor As Color, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawFilledEllipse( 
   int ImageID,
   float DstLeft,
   float DstTop,
   float Width,
   float Height,
   Color FillColor,
   bool AntiAlias
)
public function DrawFilledEllipse( 
    ImageID: Integer;
    DstLeft: Single;
    DstTop: Single;
    Width: Single;
    Height: Single;
    FillColor: Color;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawFilledEllipse( 
   ImageID : int,
   DstLeft : float,
   DstTop : float,
   Width : float,
   Height : float,
   FillColor : Color,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawFilledEllipse( 
   int ImageID,
   float DstLeft,
   float DstTop,
   float Width,
   float Height,
   Color FillColor,
   bool AntiAlias
) 
public:
GdPictureStatus DrawFilledEllipse( 
   int ImageID,
   float DstLeft,
   float DstTop,
   float Width,
   float Height,
   Color FillColor,
   bool AntiAlias
) 

Parameters

ImageID
GdPicture image identifier.
DstLeft
Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse.
DstTop
Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse.
Width
Specifies the width of the rectangle that bounds the ellipse.
Height
Specifies the height of the rectangle that bounds the ellipse.
FillColor
Color of the filled ellipse.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Example
Filling a blue ellipse with a center at 200, 200 with the horizontal radius 150 pixels and the vertical radius 100 pixels.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int centerX = 200, centerY = 200, horizontalRadius = 150, verticalRadius = 100;
    int imageID = gdpictureImaging.CreateNewGdPictureImage(400, 400, System.Drawing.Imaging.PixelFormat.Format24bppRgb, gdpictureImaging.ARGB(0, 0, 0, 0));
 
    // Fill the ellipse. The AntiAlias parameter is set to true to apply antialiasing algorithm, i.e. to improve the appearance of the ellipse boundary.
    gdpictureImaging.DrawFilledEllipse(imageID, centerX, centerY, horizontalRadius, verticalRadius, gdpictureImaging.ARGB(255, 0, 0, 255), true);
 
    gdpictureImaging.SaveAsPNG(imageID, "output.png");
 
    // Release used resources.
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also