IWICBitmapEncoder interface (wincodec.h)

Defines methods for setting an encoder's properties such as thumbnails, frames, and palettes.

Inheritance

The IWICBitmapEncoder interface inherits from the IUnknown interface. IWICBitmapEncoder also has these types of members:

Methods

The IWICBitmapEncoder interface has these methods.

 
IWICBitmapEncoder::Commit

Commits all changes for the image and closes the stream.
IWICBitmapEncoder::CreateNewFrame

Creates a new IWICBitmapFrameEncode instance.
IWICBitmapEncoder::GetContainerFormat

Retrieves the encoder's container format.
IWICBitmapEncoder::GetEncoderInfo

Retrieves an IWICBitmapEncoderInfo for the encoder.
IWICBitmapEncoder::GetMetadataQueryWriter

Retrieves a metadata query writer for the encoder.
IWICBitmapEncoder::Initialize

Initializes the encoder with an IStream which tells the encoder where to encode the bits.
IWICBitmapEncoder::SetColorContexts

Sets the IWICColorContext objects for the encoder.
IWICBitmapEncoder::SetPalette

Sets the global palette for the image.
IWICBitmapEncoder::SetPreview

Sets the global preview for the image.
IWICBitmapEncoder::SetThumbnail

Sets the global thumbnail for the image.

Remarks

There are a number of concrete implementations 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_WICGifEncoder 0x114f5598, 0xb22, 0x40a0, 0x86, 0xa1, 0xc8, 0x3e, 0xa4, 0x95, 0xad, 0xbd
CLSID_WICHeifEncoder 0x0dbecec1, 0x9eb3, 0x4860, 0x9c, 0x6f, 0xdd, 0xbe, 0x86, 0x63, 0x45, 0x75
CLSID_WICJpegEncoder 0x1a34f5c1, 0x4a5a, 0x46dc, 0xb6, 0x44, 0x1f, 0x45, 0x67, 0xe7, 0xa6, 0x76
CLSID_WICPngEncoder 0x27949969, 0x876a, 0x41d7, 0x94, 0x47, 0x56, 0x8f, 0x6a, 0x35, 0xa4, 0xdc
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.

CLSID_WICHeifDecoder operates on HEIF (High Efficiency Image Format) images.

Requirements

Requirement Value
Target Platform Windows
Header wincodec.h

See also

AITCodec Sample CODEC

Conceptual

How to Write a WIC-Enabled CODEC

Other Resources

WIC GUIDs and CLSIDs

Windows Imaging Component Overview