csharp
public enum VideoScalingWhat to do when the picture and the rectangle it goes in are different shapes.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The same three CSS's object-fit has, and the same three every video player has, because there are only three answers: change the shape, letterbox, or crop.
Fields and properties (3)
StretchFill the rectangle exactly, changing the aspect ratio. Rarely what anybody wants.
ContainFit inside, keeping the shape. Bars along the two sides that are left over.
CoverFill, keeping the shape. The two edges that do not fit are cropped away.
Used by (4)
- VideoGameVideoPlayback
- VideoFitVixen.Video
- VideoFitTestsVixen.Video.Tests
- VideoScreenPlacementVixen.Video