ImageCodecInfo ImageCodecInfo ImageCodecInfo ImageCodecInfo Class

Definition

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.

public ref class ImageCodecInfo sealed
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class ImageCodecInfo
type ImageCodecInfo = class
Public NotInheritable Class ImageCodecInfo
Inheritance
ImageCodecInfoImageCodecInfoImageCodecInfoImageCodecInfo
Attributes

Remarks

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.

Properties

Clsid Clsid Clsid Clsid

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

CodecName CodecName CodecName CodecName

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

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

FilenameExtension FilenameExtension FilenameExtension FilenameExtension

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

Flags Flags Flags 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 FormatDescription FormatDescription FormatDescription

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

FormatID FormatID FormatID FormatID

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

MimeType MimeType MimeType MimeType

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

SignatureMasks SignatureMasks SignatureMasks SignatureMasks

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

SignaturePatterns SignaturePatterns SignaturePatterns SignaturePatterns

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

Version Version Version Version

Gets or sets the version number of the codec.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetImageDecoders() GetImageDecoders() GetImageDecoders() GetImageDecoders()

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

GetImageEncoders() GetImageEncoders() GetImageEncoders() GetImageEncoders()

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

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also