Microsoft DirectX 9.0


This topic applies to Windows XP only.

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


objMSVidVideoRenderer.Capture() As IPictureDisp


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.


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