Image File Format Constants

The Image::GetRawFormat method returns a GUID that indicates the file format of an image. The following constants, defined in Gdiplusimaging.h, represent the GUIDs that identify those file formats.

Constant Description
ImageFormatBMP
Indicates the Windows  BMP format.
ImageFormatEMF
Indicates the EMF format.
ImageFormatEXIF
Indicates the Exif (Exchangeable Image File) format.
ImageFormatGIF
Indicates the GIF format.
ImageFormatHEIF
Indicates the HEIF (High Efficiency Image Format) format.
ImageFormatIcon
Indicates the Icon format.
ImageFormatJPEG
Indicates the JPEG format.
ImageFormatMemoryBMP
Indicates that the image was constructed from a memory bitmap.
ImageFormatPNG
Indicates the PNG format.
ImageFormatTIFF
Indicates the TIFF format.
ImageFormatUndefined
Indicates that GDI+ is unable to determine the format.
ImageFormatWEBP
Indicates the WebP format.
ImageFormatWMF
Indicates the WMF format.

Requirements

Header
Gdiplusimaging.h