VideoAspectRatio
Methods used to fit a video in the target area.
Elements
Element | Description |
---|---|
VideoAspectRatio.FitHorizontally | Resize proportionally so that width fits the target area, cropping or adding black bars above and below if needed. |
VideoAspectRatio.FitInside | Resize proportionally so that content fits the target area, adding black bars if needed. |
VideoAspectRatio.FitOutside | Resize proportionally so that content fits the target area, cropping if needed. |
VideoAspectRatio.FitVertically | Resize proportionally so that height fits the target area, cropping or adding black bars on each side if needed. |
VideoAspectRatio.NoScaling | Preserve the pixel size without adjusting for target area. |
VideoAspectRatio.Stretch | Resize non-proportionally to fit the target area. |