Bagikan melalui


StretchMode Struct

Definition

Defines values for StretchMode.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Management.Media.Models.StretchModeConverter))]
public struct StretchMode : IEquatable<Microsoft.Azure.Management.Media.Models.StretchMode>
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Management.Media.Models.StretchModeConverter))>]
type StretchMode = struct
Public Structure StretchMode
Implements IEquatable(Of StretchMode)
Inheritance
StretchMode
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Fields

AutoFit

Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right.

AutoSize

Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9.

None

Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video.

Methods

Equals(Object)

Overrides Equals operator for StretchMode

Equals(StretchMode)

Compares enums of type StretchMode

GetHashCode()

Returns for hashCode StretchMode

ToString()

Returns string representation for StretchMode

Operators

Equality(StretchMode, StretchMode)

Overriding == operator for enum StretchMode

Implicit(StretchMode to String)

Implicit operator to convert StretchMode to string

Implicit(String to StretchMode)

Implicit operator to convert string to StretchMode

Inequality(StretchMode, StretchMode)

Overriding != operator for enum StretchMode

Applies to