Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

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.

System.Object
  System.Drawing.Imaging.ImageCodecInfo

Namespace:  System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)
public sealed class ImageCodecInfo

The ImageCodecInfo type exposes the following members.

  NameDescription
Public propertyClsidGets or sets a Guid structure that contains a GUID that identifies a specific codec.
Public propertyCodecNameGets or sets a string that contains the name of the codec.
Public propertyDllNameGets 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.
Public propertyFilenameExtensionGets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons.
Public propertyFlagsGets or sets 32-bit value used to store additional information about the codec. This property returns a combination of flags from the ImageCodecFlags enumeration.
Public propertyFormatDescriptionGets or sets a string that describes the codec's file format.
Public propertyFormatIDGets or sets a Guid structure that contains a GUID that identifies the codec's format.
Public propertyMimeTypeGets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.
Public propertySignatureMasksGets or sets a two dimensional array of bytes that can be used as a filter.
Public propertySignaturePatternsGets or sets a two dimensional array of bytes that represents the signature of the codec.
Public propertyVersionGets or sets the version number of the codec.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodStatic memberGetImageDecodersReturns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+.
Public methodStatic memberGetImageEncodersReturns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft. All rights reserved.