Delen via


ImageEncodingProperties.Subtype Property

Definition

Gets or sets the subtype of the format.

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

Property Value

String

Platform::String

winrt::hstring

The subtype.

Implements

Remarks

The value can be the string representation of a GUID in canonical form, or one of the predefined values listed in the following table.

ValueDescription
"BMP"Bitmap image.
"ICO"ICO image.
"GIF"GIF image.
"JPEG"JPEG image.
"PNG"PNG image.
"TIFF"TIFF image.
"WMP"JPEG-XR or HD Photo image.

Warning

The string values returned by the MediaEncodingSubtypes properties may not use the same letter casing as AudioEncodingProperties.Subtype, VideoEncodingProperties.Subtype, ContainerEncodingProperties.Subtype, and ImageEncodingProperties.Subtype. For this reason, if you compare the values, you should use a case-insensitive comparison or use hardcoded strings that match the casing returned by the encoding properties.

Applies to