This documentation is archived and is not being maintained.
ImageCodecInfo Class
Visual Studio 2010
The ImageCodecInfo class provides the necessary storage members and methods to retrieve all pertinent information about the installed image encoders and decoders (called codecs). Not inheritable.
Assembly: System.Drawing (in System.Drawing.dll)
The ImageCodecInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Clsid | Gets or sets a Guid structure that contains a GUID that identifies a specific codec. |
![]() | CodecName | Gets or sets a string that contains the name of the codec. |
![]() | DllName | Gets or sets string that contains the path name of the DLL that holds the codec. If the codec is not in a DLL, this pointer is nullptr. |
![]() | FilenameExtension | Gets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons. |
![]() | Flags | Gets or sets 32-bit value used to store additional information about the codec. This property returns a combination of flags from the ImageCodecFlags enumeration. |
![]() | FormatDescription | Gets or sets a string that describes the codec's file format. |
![]() | FormatID | Gets or sets a Guid structure that contains a GUID that identifies the codec's format. |
![]() | MimeType | Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type. |
![]() | SignatureMasks | Gets or sets a two dimensional array of bytes that can be used as a filter. |
![]() | SignaturePatterns | Gets or sets a two dimensional array of bytes that represents the signature of the codec. |
![]() | Version | Gets or sets the version number of the codec. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetImageDecoders | Returns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+. |
![]() ![]() | GetImageEncoders | Returns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
