Microsoft DirectX 8.1 (C++)

MSVidVideoRenderer.Capture

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

The Capture method captures the video frame that is currently being rendered by the Video Mixing Renderer (VMR).

Syntax

objMSVidVideoRenderer.Capture() As IPictureDisp

Parameters

This method has no parameters.

Error Codes

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

Return Values

Returns an IPictureDisp object.

Remarks

For information about the IPictureDisp object, see the Microsoft Platform SDK documentation.

Example Code

Dim objVid As MSVidVideoRenderer
Set objVid = VideoControl1.VideoRendererActive
If (Not objVid Is Nothing) Then
    Picture1.Picture = objVid.Capture
End If

See Also