Microsoft DirectX 9.0


The GetCurrentImage method retrieves a copy of the current image at the renderer.


HRESULT GetCurrentImage(
    long *pBufferSize,
    long *pVideoImage



Pointer to the size of the output buffer.


Pointer to the output buffer for the image.

Return Value

Returns an HRESULT value that depends on the implementation; can be one of the following values, or other values not listed.

Value Description
E_FAIL Failure.
E_INVALIDARG Invalid argument.
E_OUTOFMEMORY Out of memory. Returned when the pVideoInfo parameter is NULL.
NOERROR Success.
VFW_E_NOT_PAUSED The operation could not be performed because the filter is not paused.


This member function retrieves the image from the sample and copies it into the output buffer. The section of video copied into the output buffer reflects the source rectangle set through the IBasicVideo interface. It does not reflect the destination rectangle.

See Also