Share via


ImageEncodingProperties.Subtype 属性

定义

获取或设置格式的子类型。

public:
 property Platform::String ^ Subtype { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Subtype();

void Subtype(winrt::hstring value);
public string Subtype { get; set; }
var string = imageEncodingProperties.subtype;
imageEncodingProperties.subtype = string;
Public Property Subtype As String

属性值

String

Platform::String

winrt::hstring

子类型。

实现

注解

该值可以是规范形式的 GUID 的字符串表示形式,也可以是下表中列出的预定义值之一。

说明
“BMP”位图图像。
“ICO”ICO 图像。
“GIF”GIF 图像。
“JPEG”JPEG 图像。
“PNG”PNG 图像。
“TIFF”TIFF 图像。
“WMP”JPEG-XR 或 HD 照片图像。

警告

MediaEncodingSubtypes 属性返回的字符串值不能使用与 AudioEncodingProperties.SubtypeVideoEncodingProperties.SubtypeContainerEncodingProperties.Subtype 和 ImageEncodingProperties.Subtype 相同的字母大小写。 因此,如果比较值,则应使用不区分大小写的比较或使用与编码属性返回的大小写匹配的硬编码字符串。

适用于