ImageScaleMode.PreserveAspectRatio Property

Definition

Preserves the same aspect ratio as the input image. If only one image dimension is provided, the second dimension is calculated based on the input image aspect ratio. When 2 dimensions are provided, the image is resized to fit the most constraining dimension, considering the input image size and aspect ratio.

public static Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode PreserveAspectRatio { get; }
static member PreserveAspectRatio : Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode
Public Shared ReadOnly Property PreserveAspectRatio As ImageScaleMode

Property Value

Applies to