Microsoft DirectX 9.0 |
The DrawVideoImageHere method draws an image from a media sample to a specified device context.
Syntax
BOOL CDrawImage::DrawVideoImageHere(
HDC hdc,
IMediaSample *pMediaSample,
RECT *lprcSrc,
RECT *lprcDst
);
Parameters
hdc
Handle to a device context, where the drawing will occur.
pMediaSample
Pointer to the IMediaSample interface of the sample that contains the image.
lprcSrc
Pointer to a source rectangle to use for drawing. If NULL, the rectangle in CDrawImage::m_SourceRect is used.
lprcDst
Pointer to a target rectangle to use for drawing. If NULL, the rectangle in CDrawImage::m_TargetRect is used.
Return Value
Returns TRUE if successful.
See Also