Get image relative source in WPF

4:28 PM

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());

You Might Also Like

0 comments.

Popular Posts

Total Pageviews