你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StretchMode 结构

定义

定义 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)
继承
StretchMode
属性
Newtonsoft.Json.JsonConverterAttribute
实现

字段

AutoFit

使用信箱或支柱框) 填充输出 (,以遵循输出分辨率,同时确保输出中的活动视频区域具有与输入相同的纵横比。 例如,如果输入为 1920x1080,编码预设要求为 1280x1280,则输出将为 1280x1280,其中包含一个纵横比为 1280x720 的内部矩形(纵横比为 16:9),柱形框区域在左侧和右侧为 280 像素宽。

AutoSize

重写输出分辨率,并更改它以匹配输入的显示纵横比,而无需填充。 例如,如果输入为 1920x1080,而编码预设要求提供 1280x1280,则会重写预设中的值,输出将是 1280x720,这样可以保持 16:9 的输入纵横比。

None

严格遵循输出分辨率,而不考虑输入视频的像素纵横比或显示纵横比。

方法

Equals(Object)

覆盖 StretchMode 的 Equals 运算符

Equals(StretchMode)

比较 StretchMode 类型的枚举

GetHashCode()

为 hashCode StretchMode 返回

ToString()

返回 StretchMode 的字符串表示形式

运算符

Equality(StretchMode, StretchMode)

重写 enum StretchMode 的 == 运算符

Implicit(StretchMode to String)

将 StretchMode 转换为字符串的隐式运算符

Implicit(String to StretchMode)

将字符串转换为 StretchMode 的隐式运算符

Inequality(StretchMode, StretchMode)

重写 enum StretchMode 的 != 运算符

适用于