Get image relative source in WPF

Lets assume we get an Image :

Image img = new Image() { Width = image.Width, Height = image.Height, Source = image };

then, our solution will look as following :

Uri path = new Uri(((BitmapFrame)imageControl.Source).Decoder.ToString());

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.