Draws a circle or ellipse onto the image.
- x
- The x-coordinate (in pixels) for the center point of the circle or ellipse.
- y
- The y-coordinate (in pixels) for the center point of the circle or ellipse.
- Radius
- The radius (in pixels) of the circle or ellipse.
- Color
The RGB color of the circles outline. If omitted, Black is used. You can use the RGB function to specify the color.
Note: Value specified must be in a valid OLE_COLOR range.
- Aspect
- Single-precision value indicating the aspect ratio of the circle. 1.0 yields a perfect (non-elliptical) circle on any screen.
To fill a circle, set the DrawFillColor and DrawFillStyle properties of the object on which the circle or ellipse is drawn.
The width of the line used to draw the circle or ellipse depends on the setting of the DrawWidth property. The way the circle is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.
The DrawArc method draws into the control's DIB.