ImageCodecInfo Class

 

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.

Namespace:   System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

System.Object
  System.Drawing.Imaging.ImageCodecInfo

public sealed class ImageCodecInfo

NameDescription
System_CAPS_pubpropertyClsid

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

System_CAPS_pubpropertyCodecName

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

System_CAPS_pubpropertyDllName

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 null.

System_CAPS_pubpropertyFilenameExtension

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

System_CAPS_pubpropertyFlags

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.

System_CAPS_pubpropertyFormatDescription

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

System_CAPS_pubpropertyFormatID

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

System_CAPS_pubpropertyMimeType

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

System_CAPS_pubpropertySignatureMasks

Gets or sets a two dimensional array of bytes that can be used as a filter.

System_CAPS_pubpropertySignaturePatterns

Gets or sets a two dimensional array of bytes that represents the signature of the codec.

System_CAPS_pubpropertyVersion

Gets or sets the version number of the codec.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetImageDecoders()

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

System_CAPS_pubmethodSystem_CAPS_staticGetImageEncoders()

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

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

GDI+ uses image encoders to convert the images stored in Bitmap objects to various file formats. Image encoders are built into GDI+ for the BMP, JPEG, GIF, TIFF, and PNG formats. An encoder is invoked when you call the Save or SaveAdd method of a Image object.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: