ImageCodecInfo
ImageCodecInfo class
的ImageCodecInfo类提供必要的存储成员和方法来检索有关已安装的图像编码器和解码器(称为编解码器)的所有相关信息。不可继承。
public sealed class ImageCodecInfo
特性
| 姓名 | 描述 | 
|---|---|
| Clsid { get; set; } | 获取或设置一个Guid包含标识特定编解码器的 GUID 的结构。 | 
| CodecName { get; set; } | 获取或设置一个包含编解码器名称的字符串。 | 
| FilenameExtension { get; set; } | 获取或设置包含编解码器中使用的文件扩展名的字符串。 扩展名用分号分隔。 | 
| FormatDescription { get; set; } | 获取或设置描述编解码器文件格式的字符串。 | 
| FormatID { get; set; } | 获取或设置一个Guid包含标识编解码器格式的 GUID 的结构。 | 
| MimeType { get; set; } | 获取或设置包含编解码器的多用途 Internet 邮件扩展 (MIME) 类型的字符串。 | 
| SignatureMasks { get; set; } | 获取或设置可用作过滤器的二维字节数组。 | 
| SignaturePatterns { get; set; } | 获取或设置代表编解码器签名的二维字节数组。 | 
| Version { get; set; } | 获取或设置编解码器的版本号。 | 
方法
| 姓名 | 描述 | 
|---|---|
| static GetImageDecoders() | 返回一个数组ImageCodecInfo包含有关 GDI+. 中内置的图像解码器信息的对象 | 
| static GetImageEncoders() | 返回一个数组ImageCodecInfo包含有关 GDI+. 中内置的图像编码器信息的对象 |