SetBounds method

Sets the surface's volume boundary structure.

Syntax

HRESULT retVal = object.SetBounds(pBounds);

Parameters

  • pBounds [in]
    Type: const DXBNDS

    Pointer to the DXBNDS boundary structure that contains this surface's bounding volume. This pointer can be NULL to clear a previous call to IDXSurfaceModifier::SetBounds.

Remarks

The IDXSurfaceModifier::SetBounds method is only used to set the height and width of the entire visible surface; it does not specify where the image will be blitted on the output surface.

If there is a set background surface, this call will fail if the bounds specified are any size other than the bounds of the background surface. If no background surface is set, the bounds can be any valid size.