Skip to content

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

NameValueDescription
Fit0Scale 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.
Cover1Scale to cover the target dimensions while preserving aspect ratio. Excess content is cropped from center. Equivalent to CSS object-fit: cover.
Pad2Scale to fit within target dimensions and add padding to fill remaining space. Uses BackgroundColor for padding.
Stretch3Stretch to exactly match target dimensions, ignoring aspect ratio. Equivalent to CSS object-fit: fill.