Share via


stretchmode Attribute

 
Microsoft DirectShow 9.0

stretchmode Attribute

The stretchmode attribute specifies how to stretch an image that does not match the output dimensions.

Possible Values

Must have one of the following values.

  • stretch: The image is stretched to fit the output frame size without preserving aspect ratio. (Default)
  • crop: The image is cropped to fit the output frame size.
  • preserveaspectratio: The original aspect ratio is preserved, with a black letterbox along the shorter dimension.
  • preserveaspectrationoletterbox: The image is resized to fill the entire target frame while preserving the aspect ratio.

Applies To

clip

See Also