Partager via


CDrawImage::SetTargetRect

 
Microsoft DirectShow 9.0

CDrawImage::SetTargetRect

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

No return 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:** Declared in Winutil.h; include Streams.h.

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

See Also