DrawCircle(Int32,Single,Single,Single,Int32,Single,Boolean) Method
Draws a circle on a GdPicture image. The drawing color is specified with an integer value.
public GdPictureStatus DrawCircle(
int ,
float ,
float ,
float ,
int ,
float ,
bool
)
public function DrawCircle(
: Integer;
: Single;
: Single;
: Single;
: Integer;
: Single;
: Boolean
): GdPictureStatus;
public function DrawCircle(
: int,
: float,
: float,
: float,
: int,
: float,
: boolean
) : GdPictureStatus;
public: GdPictureStatus DrawCircle(
int ,
float ,
float ,
float ,
int ,
float ,
bool
)
public:
GdPictureStatus DrawCircle(
int ,
float ,
float ,
float ,
int ,
float ,
bool
)
'Declaration
Public Overloads Function DrawCircle( _
ByVal As Integer, _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByVal As Integer, _
ByVal As Single, _
ByVal As Boolean _
) As GdPictureStatus
Parameters
- ImageID
- GdPicture image identifier.
- DstLeft
- Specifies the x-coordinate of the center of the circle.
- DstTop
- Specifies the y-coordinate of the center of the circle.
- Diameter
- Diameter of the circle in pixel.
- PenColor
- The circle color. A suitable color value can be obtained by using the ARGBI() method.
- PenWidth
- The width, in pixel, of the pen used to draw the circle.
- AntiAlias
- Set to True to apply the Antialiasing algorithm else False.
Return Value
A member of the GdPictureStatus enumeration.
Drawing a red circle on a png image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
int imageID = gdpictureImaging.CreateGdPictureImageFromFile("input.png");
gdpictureImaging.DrawCircle(imageID, 100, 100, 100, gdpictureImaging.ARGBI(255, 255, 0, 0), 1, true);
gdpictureImaging.SaveAsPNG(imageID, "output.png");
gdpictureImaging.ReleaseGdPictureImage(imageID);
}