Using Image Encoders and Decoders in Managed GDI+
.NET Framework 4.5
The System.Drawing namespace provides the Image and Bitmap classes for storing and manipulating images. By using image encoders in GDI+, you can write images from memory to disk. By using image decoders in GDI+, you can load images from disk into memory. An encoder translates the data in an Image or Bitmap object into a designated disk file format. A decoder translates the data in a disk file to the format required by the Image and Bitmap objects.
GDI+ has built-in encoders and decoders that support the following file types:
-
BMP
-
GIF
-
JPEG
-
PNG
-
TIFF
GDI+ also has built-in decoders that support the following file types:
-
WMF
-
EMF
-
ICON
The following topics discuss encoders and decoders in more detail: