Struct ImageScaleMode
Describes the image scaling mode to be applied. Default mode is 'pad'.
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Media.VideoAnalyzer.Edge.dll
Syntax
public struct ImageScaleMode : IEquatable<Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode>
Constructors
ImageScaleMode(String)
Determines if two ImageScaleMode values are the same.
Declaration
public ImageScaleMode (string value);
Parameters
System.String
value
|
Exceptions
System.ArgumentNullException
|
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.
Declaration
public static Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode Pad { get; }
Property Value
ImageScaleMode
|
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.
Declaration
public static Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode PreserveAspectRatio { get; }
Property Value
ImageScaleMode
|
Stretch
Stretches the original image so it resized to the specified dimensions.
Declaration
public static Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode Stretch { get; }
Property Value
ImageScaleMode
|
Methods
Equals(ImageScaleMode)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals (Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode other);
Parameters
ImageScaleMode
other
An object to compare with this object. |
Returns
System.Boolean
|
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
[System.ComponentModel.EditorBrowsable]
public override bool Equals (object obj);
Parameters
System.Object
obj
The object to compare with the current instance. |
Returns
System.Boolean
|
GetHashCode()
Returns the hash code for this instance.
Declaration
[System.ComponentModel.EditorBrowsable]
public override int GetHashCode ();
Returns
System.Int32
A 32-bit signed integer that is the hash code for this instance. |
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString ();
Returns
System.String
The fully qualified type name. |
Operators
Equality(ImageScaleMode, ImageScaleMode)
Determines if two ImageScaleMode values are the same.
Declaration
public static bool operator == (Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode left, Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode right);
Parameters
ImageScaleMode
left
|
ImageScaleMode
right
|
Returns
System.Boolean
|
Implicit(String to ImageScaleMode)
Converts a string to a ImageScaleMode.
Declaration
public static implicit operator Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode (string value);
Parameters
System.String
value
|
Returns
ImageScaleMode
|
Inequality(ImageScaleMode, ImageScaleMode)
Determines if two ImageScaleMode values are not the same.
Declaration
public static bool operator != (Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode left, Azure.Media.VideoAnalyzer.Edge.Models.ImageScaleMode right);
Parameters
ImageScaleMode
left
|
ImageScaleMode
right
|
Returns
System.Boolean
|