IWICBitmapEncoder interface
Defines methods for setting an encoder's properties such as thumbnails, frames, and palettes.
Members
The IWICBitmapEncoder interface inherits from the IUnknown interface. IWICBitmapEncoder also has these types of members:
Methods
The IWICBitmapEncoder interface has these methods.
| Method | Description |
|---|---|
| Commit |
Commits all changes for the image and closes the stream. |
| CreateNewFrame |
Creates a new IWICBitmapFrameEncode instance. |
| GetContainerFormat |
Retrieves the encoder's container format. |
| GetEncoderInfo |
Retrieves an IWICBitmapEncoderInfo for the encoder. |
| GetMetadataQueryWriter |
Retrieves a metadata query writer for the encoder. |
| Initialize |
Initializes the encoder with an IStream which tells the encoder where to encode the bits. |
| SetColorContexts |
Sets the IWICColorContext objects for the encoder. |
| SetPalette |
Sets the global palette for the image. |
| SetPreview |
Sets the global preview for the image. |
| SetThumbnail |
Sets the global thumbnail for the image. |
Remarks
There are a number of concrete implemenations of this interface representing each of the standard encoders provided by the platform including bitmap (BMP), Portable Network Graphics (PNG), Joint Photographic Experts Group (JPEG), Graphics Interchange Format (GIF), Tagged Image File Format (TIFF), and Microsoft Windows Digital Photo (WDP). The following table includes the class identifier (CLSID) for each native encoder.
| CLSID Name | CLSID |
|---|---|
| CLSID_WICBmpEncoder | 0x69be8bb4, 0xd66d, 0x47c8, 0x86, 0x5a, 0xed, 0x15, 0x89, 0x43, 0x37, 0x82 |
| CLSID_WICPngEncoder | 0x27949969, 0x876a, 0x41d7, 0x94, 0x47, 0x56, 0x8f, 0x6a, 0x35, 0xa4, 0xdc |
| CLSID_WICJpegEncoder | 0x1a34f5c1, 0x4a5a, 0x46dc, 0xb6, 0x44, 0x1f, 0x45, 0x67, 0xe7, 0xa6, 0x76 |
| CLSID_WICGifEncoder | 0x114f5598, 0xb22, 0x40a0, 0x86, 0xa1, 0xc8, 0x3e, 0xa4, 0x95, 0xad, 0xbd |
| CLSID_WICTiffEncoder | 0x0131be10, 0x2001, 0x4c5f, 0xa9, 0xb0, 0xcc, 0x88, 0xfa, 0xb6, 0x4c, 0xe8 |
| CLSID_WICWmpEncoder | 0xac4ce3cb, 0xe1c1, 0x44cd, 0x82, 0x15, 0x5a, 0x16, 0x65, 0x50, 0x9e, 0xc2 |
Additionally this interface may be sub-classed to provide support for third party codecs as part of the extensibility model. See the AITCodec Sample CODEC.
See also
- Conceptual
- Windows Imaging Component Overview
- WIC GUIDs and CLSIDs
- Other Resources
- How to Write a WIC-Enabled CODEC
- AITCodec Sample CODEC