Answers for "wpf image source from image"

C#
0

wpf set image source in code behind

myImage.Source = new BitmapImage(new Uri(@"/Images/foo.png", UriKind.Relative));
Posted by: Guest on August-18-2021
0

how to see image from website in wpf

var image = new Image();
var fullFilePath = @"http://www.americanlayout.com/wp/wp-content/uploads/2012/08/C-To-Go-300x300.png";

BitmapImage bitmap = new BitmapImage();
bitmap.BeginInit();
bitmap.UriSource = new Uri(fullFilePath, UriKind.Absolute);
bitmap.EndInit();

image.Source = bitmap;
wrapPanel1.Children.Add(image);
Posted by: Guest on August-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language