Platform SDK: DirectX

DirectDrawSurface7.DrawLine

The DirectDrawSurface7.DrawLine method draws a line on the surface.

object.DrawLine( _ 
    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
End points of the line 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; this can be changed with a call to DirectDrawSurface7.SetDrawStyle.