BitmapEncoder.Create(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
public static System.Windows.Media.Imaging.BitmapEncoder Create (Guid containerFormat);
[<System.Security.SecurityCritical>]
static member Create : Guid -> System.Windows.Media.Imaging.BitmapEncoder
static member Create : Guid -> System.Windows.Media.Imaging.BitmapEncoder
Public Shared Function Create (containerFormat As Guid) As BitmapEncoder
Parameters
- containerFormat
- Guid
Identifies the desired bitmap encoding format.
Returns
A BitmapEncoder that can encode to the specified containerFormat
.
- Attributes
Exceptions
The containerFormat
is Empty
.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk