DrawRotatedFilledEllipse Method (GdPictureImaging)
Draws a rotated and filled ellipse on a GdPicture image.
public GdPictureStatus DrawRotatedFilledEllipse(
int ,
float ,
float ,
float ,
float ,
float ,
Color ,
bool
)
public function DrawRotatedFilledEllipse(
: Integer;
: Single;
: Single;
: Single;
: Single;
: Single;
: Color;
: Boolean
): GdPictureStatus;
public function DrawRotatedFilledEllipse(
: int,
: float,
: float,
: float,
: float,
: float,
: Color,
: boolean
) : GdPictureStatus;
public: GdPictureStatus DrawRotatedFilledEllipse(
int ,
float ,
float ,
float ,
float ,
float ,
Color ,
bool
)
public:
GdPictureStatus DrawRotatedFilledEllipse(
int ,
float ,
float ,
float ,
float ,
float ,
Color ,
bool
)
'Declaration
Public Function DrawRotatedFilledEllipse( _
ByVal As Integer, _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByVal As Color, _
ByVal As Boolean _
) As GdPictureStatus
Parameters
- ImageID
- GdPicture image identifier.
- Angle
- Angle of rotation in degrees.
- 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 rectangle. 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.
Filling a rotated ellipse on a GdPicture image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
int left = 50, top = 100, width = 250, height = 150;
float angle = 30.0f;
Color fillColor = Color.Green;
int imageID = gdpictureImaging.CreateNewGdPictureImage(400, 400, System.Drawing.Imaging.PixelFormat.Format24bppRgb, Color.White);
// Fill the rotated ellipse. The AntiAlias parameter is set to true to apply antialiasing algorithm, i.e. to improve the appearance of the ellipse boundary.
gdpictureImaging.DrawRotatedFilledEllipse(imageID, angle, left, top, width, height, fillColor, true);
gdpictureImaging.SaveAsPNG(imageID, "output.png");
// Release used resources.
gdpictureImaging.ReleaseGdPictureImage(imageID);
}