BitmapEncoder.Create(Guid) BitmapEncoder.Create(Guid) BitmapEncoder.Create(Guid) BitmapEncoder.Create(Guid) Method

Definition

Creates a BitmapEncoder from a Guid that identifies the desired bitmap format.

public:
 static System::Windows::Media::Imaging::BitmapEncoder ^ Create(Guid containerFormat);
[System.Security.SecurityCritical]
public static System.Windows.Media.Imaging.BitmapEncoder Create (Guid containerFormat);
static member Create : Guid -> System.Windows.Media.Imaging.BitmapEncoder
Public Shared Function Create (containerFormat As Guid) As BitmapEncoder

Parameters

containerFormat
Guid Guid Guid Guid

Identifies the desired bitmap encoding format.

Returns

A BitmapEncoder that can encode to the specified containerFormat.

Exceptions

Remarks

This method is provided for extensibility purposes only. Codec authors must generate their own Guid to identify their newly created encoder. Use the derived BitmapEncoder classes, such as the BmpBitmapEncoder class, to create an encoder for a built in codec.

Applies to