Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
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 VMRALPHABITMAP* pBmpParms
);
Parameters
pBmpParms
[in] Pointer to a VMRALPHABITMAP structure that contains information about the bitmap.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Error Code | Description |
E_POINTER | pBmpParms is invalid. |
E_INVALIDARG | Indicates a problem with the dwFlags member of the VMRALPHABITMAP structure or failure to specify a valid HDC or DirectDraw 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. |
See Also