Read Image Metadata WithWPF
Join the DZone community and get the full member experience.Join For Free
// description of your code here
FileStream fs = new FileStream("image.jpg", FileMode.Open, FileAccess.Read, FileShare.Read); BitmapDecoder decoder = BitmapDecoder.Create(fs, BitmapCreateOptions.None, BitmapCacheOption.Default); BitmapFrame frame = decoder.Frames; BitmapMetadata metadata = frame.Metadata as BitmapMetadata;
Opinions expressed by DZone contributors are their own.