Skip to main content

ImageCodecInfo

Namespace: System.Drawing.Imaging

Assembly: System.Drawing.Managed (4.0.0.0)

provides the necessary storage members and methods to retrieve all pertinent information about the available image encoders and decoders.

public class ImageCodecInfo

Properties​

Instance member Clsid​

Guid: Gets or sets a Guid structure that contains a GUID that identifies a specific codec.

Instance member CodecName​

String: Gets or sets a string that contains the name of the codec.

Instance member FilenameExtension​

String: Gets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons.

Instance member FormatDescription​

String: Gets or sets a string that describes the codec's file format.

Instance member FormatID​

Guid: Gets or sets a Guid structure that contains a GUID that identifies the codec's format.

Instance member MimeType​

String: Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.

Methods​

Static member GetImageDecoders()​

Returns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+.

Returns: ImageCodecInfo[]. An array of ImageCodecInfo objects. Each ImageCodecInfo object in the array contains information about one of the built-in image decoders.

Static member GetImageEncoders()​

Returns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+.

Returns: ImageCodecInfo[]. An array of ImageCodecInfo objects. Each ImageCodecInfo object in the array contains information about one of the built-in image encoders.