CDrawImage::ScaleSourceRect
Microsoft DirectShow 9.0 |
CDrawImage::ScaleSourceRect
The ScaleSourceRect method scales a rectangle, if there is a difference between the native video size and the media type format.
Syntax
virtual RECT ScaleSourceRect( const RECT *pSource );
Parameters
pSource
Pointer to an unscaled rectangle.
Return Value
Returns the scaled rectangle.
Remarks
In the CDrawImage class, this method returns pSource without any change. You can override this method if the filter stretches the incoming video image. For example, the native video size might be 320 × 240, but the media type on the input pin might be 640 × 480. In that case the filter would need to scale the source rectangle by a factor of 2.
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also