Resize Flags
Microsoft DirectShow 9.0 |
These flags specify how a video source is rendered if its size does not match the output dimensions.
Constant | Value | Description |
RESIZEF_STRETCH | 0 | The image is stretched to fit the target frame size in both dimensions, without preserving the aspect ratio. |
RESIZEF_CROP | 1 | The image is not resized. If the image is smaller than the target frame, the surrounding area is black. If the image is larger than the target frame, the image is cropped. |
RESIZEF_PRESERVEASPECTRATIO | 2 | The image is resized to fit the target frame along one dimension, while preserving the aspect ratio. If the ratio of width to height in the image does not match the ratio in the target frame, it creates a letterbox. |
RESIZEF_PRESERVEASPECTRATIO_NOLETTERBOX | 3 | The image is resized to fill the entire target frame while preserving the aspect ratio. Rather than create a letterbox, this mode crops the image, either along the sides or across the top and bottom. |
The following images show the effects of these flags.
Requirements
Header: Qedit.h.
See Also