Platform SDK: DirectX

DirectDraw7.CreateClipper

The DirectDraw7.CreateClipper method creates a DirectDrawClipper object.

object.CreateClipper(flags As Long) As DirectDrawClipper

Parameters

object
Object expression that resolves to a DirectDraw7 object.
flags
Currently not used and must be set to 0.

Return Values

If the method succeeds, it returns a DirectDrawClipper object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_NOCOOPERATIVELEVELSET
DDERR_OUTOFMEMORY

Remarks

The DirectDrawClipper object can be attached to a DirectDrawSurface and used during DirectDrawSurface7.Blt operations.

See Also

DirectDrawSurface7.GetClipper, DirectDrawSurface7.SetClipper