InitViaBmp() private method

Read metadata using .NET 2.0 methods.
private InitViaBmp ( Image img ) : void
img Image Opened image
return void
        /// <summary>
        /// Creates an instance of the MetadataExtractor class.
        /// Reads metadata via WIC/WPF (.NET 3.0).
        /// If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.
        /// </summary>
        /// <param name="path">Filepath of image</param>
        /// <param name="useWic">true to use Windows Imaging Component; otherwise false.</param>
        public static MetadataExtractor FromFile(string path, bool useWic)
        {
            MetadataExtractor metadata = new MetadataExtractor();

#if USEWIC
            if (useWic)
            {
                metadata.InitViaWpf(path);
            }
            else
            {
                metadata.InitViaBmp(path);
            }
#else
            metadata.InitViaBmp(path);
#endif
            return(metadata);
        }
 /// <summary>
 /// Creates an instance of the MetadataExtractor class.
 /// Reads metadata via WIC/WPF (.NET 3.0).
 /// If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method. 
 /// </summary>
 /// <param name="path">Filepath of image</param>
 /// <param name="useWic">true to use Windows Imaging Component; otherwise false.</param>
 public static MetadataExtractor FromFile(string path, bool useWic)
 {
     MetadataExtractor metadata = new MetadataExtractor();
     #if USEWIC
     if (useWic)
         metadata.InitViaWpf(path);
     else
         metadata.InitViaBmp(path);
     #else
     metadata.InitViaBmp(path);
     #endif
     return metadata;
 }