Microsoft DirectX 8.1 (C++)

MSVidVideoRenderer.SetupMixerBitmap

This topic applies to Windows XP Home Edition and Windows XP Professional only.

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

Syntax

ObjMSVidVideoRenderer.SetupMixerBitmap(
  MixerPictureDisp IpictureDisp,
  Opacity As Long,
  rDest As MSVidRect
)

Parameters

  MixerPictureDisp

Specifies the bitmap as an IPictureDisp object.

  Opacity

Specifies the opacity of the bitmap, as a number from 0 (transparent) to 100 (opaque).

  Rectangle

Specifies the bitmap’s rectangle as an IMSVidRect object relative to the video window.

Error Codes

If the method fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

This method does not return a value.

Remarks

The VMR alpha-blends the static bitmap image onto the video image. For information about the IPictureDisp interface, see the Platform SDK documentation.

This method sets the MSVidVideoRenderer.MixerBitmap, MSVidVideoRenderer.MixerBitmapOpacity, and MSVidVideoRenderer.MixerBitmapPositionRect properties.

See Also