Vixen
02b45cc4
csharp
public enum VideoScaling

What 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)

  • Stretch

    Fill the rectangle exactly, changing the aspect ratio. Rarely what anybody wants.

  • Contain

    Fit inside, keeping the shape. Bars along the two sides that are left over.

  • Cover

    Fill, keeping the shape. The two edges that do not fit are cropped away.

Used by (4)

  • VideoGameVideoPlayback
  • VideoFitVixen.Video
  • VideoFitTestsVixen.Video.Tests
  • VideoScreenPlacementVixen.Video