internal Hashtable Iterate () {
// TBD: Insert Exception handling here
- NameValueCollection nvc = (NameValueCollection) System.Configuration.ConfigurationSettings
- .GetConfig ("system.drawing/codecs");
+ NameValueCollection nvc = (NameValueCollection) System.Configuration.ConfigurationSettings\r
+ .GetConfig ("mainsoft.drawing/codecs");
Hashtable codecs = new Hashtable (10);
for (int i=0; i<nvc.Count; i++) {
private static ImageFormat MimeTypesToImageFormat (string [] mimeTypes) {
foreach (ImageCodecInfo codec in Decoders.Values)
- for (int i=0; i<mimeTypes.Length; i++)
- if (codec.MimeType == mimeTypes [i])
- return new ImageFormat (codec.FormatID);
+ for (int i=0; i<mimeTypes.Length; i++)\r
+ if (codec.MimeType == mimeTypes [i])\r
+ return ClsidToImageFormat (codec.Clsid);\r
return null;
}
return new float[]{0, 0};\r
\r
ResolutionConfigurationCollection rcc =
- (ResolutionConfigurationCollection)
- ConfigurationSettings.GetConfig("system.drawing/codecsmetadata");
+ (ResolutionConfigurationCollection)\r
+ ConfigurationSettings.GetConfig ("mainsoft.drawing/codecsmetadata");
if (rcc == null)
throw new ConfigurationException("Configuration section codecsmetadata not found");