I did some prototyping in WinForm app and the code works for me:
using System.Drawing;
using System.Drawing.Imaging;
.............
Image img0 = null;
img0 = Image.FromFile(filename);
PropertyItem[] propItems = img0.PropertyItems;
However when I copied it to a WPF application I'm getting errors & incompatibilities between references.
I tried to Add .NET references System.Drawing and System.Drawing.Imaging, but there is a conflict with System.Windows.Control.Image. Could anybody advise how to rewrite the above code to get it working in WPF.