The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImageCodecInfo class

Applies to: desktop apps only

An ImageCodecInfo object stores information about an image codec (encoder/decoder). GDI+ provides several built-in image codecs. You can obtain information about those codecs by calling the GetImageEncoders function and the GetImageDecoders function. Each of those functions returns an array of ImageCodecInfo objects, one for each available encoder or decoder.

ImageCodecInfo has these types of members:

Data Members

The following table lists the members exposed by the ImageCodecInfo object.

Data MembersTypeDescription
ClsidCLSIDCodec identifier.
FormatIDGUIDFile format identifier. GUIDs that identify various file formats (ImageFormatBMP, ImageFormatEMF, and the like) are defined in Gdiplusimaging.h.
CodecNameWCHAR *Pointer to a null-terminated string that contains the codec name.
DllNameWCHAR *Pointer to a null-terminated string that contains the path name of the DLL in which the codec resides. If the codec is not in a DLL, this pointer is NULL.
FormatDescriptionWCHAR *Pointer to a null-terminated string that contains the name of the file format used by the codec.
FilenameExtensionWCHAR *Pointer to a null-terminated string that contains all file-name extensions associated with the codec. The extensions are separated by semicolons.
MimeTypeWCHAR * Pointer to a null-terminated string that contains the mime type of the codec.
FlagsDWORDCombination of flags from the ImageCodecFlags enumeration.
VersionDWORDInteger that indicates the version of the codec.
SigCountDWORDInteger that indicates the number of signatures used by the file format associated with the codec.
SigSizeDWORDInteger that indicates the number of bytes in each signature.
SigPatternBYTE *Pointer to an array of bytes that contains the pattern for each signature.
SigMaskBYTE *Pointer to an array of bytes that contains the mask for each signature.



Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server


GDI+ 1.0


Gdiplusimaging.h (include Gdiplus.h)



See also

Listing Installed Encoders
Using Image Encoders and Decoders



Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions