CDrawImage.SetTargetRect method

The SetTargetRect method sets the target rectangle.

Syntax

void SetTargetRect(
   RECT *pTargetRect
);

Parameters

pTargetRect

Pointer to a RECT structure that defines the new target rectangle.

Return value

This method does not return a value.

Remarks

The owning filter should call this method if the source rectangle changes; for example, in response to an IBasicVideo::SetDestinationPosition call.

Before calling this method, validate the rectangle given in pTargetRect, relative to the video window.

Requirements

Header
Winutil.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CDrawImage Class