Platform SDK: DirectX

DirectDrawSurface7.DrawCircle

The DirectDrawSurface7.DrawCircle method draws a circle on the surface.

object.DrawCircle( _ 
    x1 As Long, _ 
    y1 As Long, _ 
    r As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x1, y1, r
Center point and radius of the circle to be drawn.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

The default draw style is a solid line, and the default fill style is set to transparent. Both styles can be changed with a call to DirectDrawSurface7.SetDrawStyle and DirectDrawSurface7.SetFillStyle, respectively.