ImageCodecInfo
System.Drawing.Imaging.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 ImageCodecInfoPublic Class ImageCodecInfoProperties
Clsid
Guid: Gets or sets a Guid structure that contains a GUID that identifies a specific codec.
CodecName
String: Gets or sets a string that contains the name of the codec.
FilenameExtension
String: Gets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons.
FormatDescription
String: Gets or sets a string that describes the codec's file format.
FormatID
Guid: Gets or sets a Guid structure that contains a GUID that identifies the codec's format.
MimeType
String: Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.
Methods
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.
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.
Last updated
Was this helpful?