Microsoft DirectX 9.0

IVMRMixerBitmap::SetAlphaBitmap

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 NULL.
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