Microsoft DirectX 9.0


This topic applies to Windows XP only.

The SetupMixerBitmap method configures the Video Mixing Renderer (VMR) to display an alpha-blended bitmap on top of the video.


HRESULT SetupMixerBitmap(
  IPictureDisp*  pMixerPictureDisp,
  long  Opacity,
  IMSVidRect*  prDest



[in]  Pointer to an IPictureDisp interface that specifies the bitmap.


[in]  Specifies the opacity of the bitmap, as an integer from 0 (transparent) to 100 (opaque).


[in]  Pointer to an IMSVidRect interface that specifies the position of the bitmap, relative to the video window.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

See Also