Share via


CDrawImage::DrawVideoImageHere

 
Microsoft DirectShow 9.0

CDrawImage::DrawVideoImageHere

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.

Requirements

**  Header:** Declared in Winutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also