Get image relative source in WPF
4:28 PM
Lets assume we get an Image :
then, our solution will look as following :
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());
0 comments.