BitmapCodecInformation BitmapCodecInformation BitmapCodecInformation BitmapCodecInformation BitmapCodecInformation Class

Definition

Provides access to information about a decoder or encoder.

public : sealed class BitmapCodecInformation : IBitmapCodecInformation
struct winrt::Windows::Graphics::Imaging::BitmapCodecInformation : IBitmapCodecInformation
public sealed class BitmapCodecInformation : IBitmapCodecInformation
Public NotInheritable Class BitmapCodecInformation Implements IBitmapCodecInformation
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

CodecId CodecId CodecId CodecId CodecId

The unique identifier of the decoder or encoder. Methods like BitmapDecoder::CreateAsync and BitmapEncoder::CreateAsync use the codec identifier to determine which codec to create.

public : Platform::Guid CodecId { get; }
Guid CodecId();
public Guid CodecId { get; }
Public ReadOnly Property CodecId As Guid
var guid = bitmapCodecInformation.codecId;
Value
Guid Guid Guid

The codec unique identifier.

Remarks

The encoder and decoder of an image format are separate, and their codec IDs are distinct.

FileExtensions FileExtensions FileExtensions FileExtensions FileExtensions

A collection of all the file extensions supported by the decoder or encoder.

public : IVectorView<Platform::String> FileExtensions { get; }
IVectorView<winrt::hstring> FileExtensions();
public IReadOnlyList<string> FileExtensions { get; }
Public ReadOnly Property FileExtensions As IReadOnlyList<string>
var iReadOnlyList = bitmapCodecInformation.fileExtensions;
Value
IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

The list of supported file extensions.

FriendlyName FriendlyName FriendlyName FriendlyName FriendlyName

The friendly name of the decoder or encoder.

public : Platform::String FriendlyName { get; }
winrt::hstring FriendlyName();
public string FriendlyName { get; }
Public ReadOnly Property FriendlyName As string
var string = bitmapCodecInformation.friendlyName;
Value
string string string

The friendly name of the codec.

MimeTypes MimeTypes MimeTypes MimeTypes MimeTypes

A collection of all the MIME/content types supported by the decoder or encoder. MIME type is synonymous with content type.

public : IVectorView<Platform::String> MimeTypes { get; }
IVectorView<winrt::hstring> MimeTypes();
public IReadOnlyList<string> MimeTypes { get; }
Public ReadOnly Property MimeTypes As IReadOnlyList<string>
var iReadOnlyList = bitmapCodecInformation.mimeTypes;
Value
IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

The list of supported MIME/content types.