private InitViaWpf ( System.Windows.Media.Imaging.BitmapFrame frameWpf ) : void | ||
frameWpf | System.Windows.Media.Imaging.BitmapFrame | Opened WPF image |
Résultat | 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="frameWpf">Opened WPF image</param> public static MetadataExtractor FromBitmap(BitmapFrame frameWpf) { MetadataExtractor metadata = new MetadataExtractor(); metadata.InitViaWpf(frameWpf); 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); }
/// <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="frameWpf">Opened WPF image</param> public static MetadataExtractor FromBitmap(BitmapFrame frameWpf) { MetadataExtractor metadata = new MetadataExtractor(); metadata.InitViaWpf(frameWpf); 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; }