DirectX SDK

DirectDrawSurface7.DrawEllipse

The DirectDrawSurface7.DrawEllipse method draws an ellipse on the surface.

object.DrawEllipse(x1 As Long, _
    y1 As Long, _
    x2 As Long, _
    y2 As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x1, y1, x2, y2
Upper-left and lower-right corners of the bounding rectangle of the ellipse 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.