ResizeMode
Namespace: MJCZone.MediaMatic.Models
Assembly: MJCZone.MediaMatic
Summary
Specifies how an image or video frame should be resized to fit target dimensions.
Inheritance
Base Class: Enum
sealed public
Contents
Enum Members (4)
Enum Members
| Name | Value | Description |
|---|---|---|
| Fit | 0 | Scale to fit within the target dimensions while preserving aspect ratio. The result may be smaller than the target in one dimension. Equivalent to CSS object-fit: contain. |
| Cover | 1 | Scale to cover the target dimensions while preserving aspect ratio. Excess content is cropped from center. Equivalent to CSS object-fit: cover. |
| Pad | 2 | Scale to fit within target dimensions and add padding to fill remaining space. Uses BackgroundColor for padding. |
| Stretch | 3 | Stretch to exactly match target dimensions, ignoring aspect ratio. Equivalent to CSS object-fit: fill. |