Microsoft DirectX 9.0 |
The SetAlphaBitmap method specifies a new bitmap image and the source location of the bitmap and how and where it should be rendered on the destination rectangle.
Syntax
HRESULT SetAlphaBitmap(
const VMR9AlphaBitmap* pBmpParms
);
Parameters
pBmpParms
[in] Pointer to a VMR9AlphaBitmap structure that contains information about the bitmap.
Return Values
The method returns an HRESULT. Possible values include those in the following table.
Value | Description |
S_OK | The method succeeded. |
E_POINTER | pBmpParms is NULL. |
E_INVALIDARG | Indicates a problem with the dwFlags member of the VMR9ALPHABITMAP structure or failure to specify a valid HDC or Direct3D surface in the structure, or an invalid value for fAlpha. |
E_OUTOFMEMORY | Could not create a destination DC or DIBSection for the bitmap. |
E_FAIL | BitBlt to bitmap surface failed. |
Requirements
Include D3d9.h, Vmr9.h.
See Also