ImageScaleMode Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the image scaling mode to be applied. Default mode is 'pad'.
public readonly struct ImageScaleMode : IEquatable<Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode>
type ImageScaleMode = struct
Public Structure ImageScaleMode
Implements IEquatable(Of ImageScaleMode)
- Inheritance
-
ImageScaleMode
- Implements
Constructors
ImageScaleMode(String) |
Initializes a new instance of ImageScaleMode. |
Properties
Pad |
Pads the image with black horizontal stripes (letterbox) or black vertical stripes (pillar-box) so the image is resized to the specified dimensions while not altering the content aspect ratio. |
PreserveAspectRatio |
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. |
Stretch |
Stretches the original image so it resized to the specified dimensions. |
Methods
Equals(ImageScaleMode) |
Indicates whether the current object is equal to another object of the same type. |
ToString() |
Returns the fully qualified type name of this instance. |
Operators
Equality(ImageScaleMode, ImageScaleMode) |
Determines if two ImageScaleMode values are the same. |
Implicit(String to ImageScaleMode) |
Converts a string to a ImageScaleMode. |
Inequality(ImageScaleMode, ImageScaleMode) |
Determines if two ImageScaleMode values are not the same. |
Applies to
Azure SDK for .NET