Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining

SetBounds method

Sets the surface's volume boundary structure.


HRESULT retVal = object.SetBounds(pBounds);


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.


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.



© 2015 Microsoft