Using Image control in WPF to display System.Drawing.Bitmap

c#, wpf

Solution

You can use the Source property of the image. Try this code...

ImageSource imageSource = new BitmapImage(new Uri("C:\\FileName.gif"));

image1.Source = imageSource;

Problem

How do I assign an in-memory `Bitmap` object to an `Image` control in WPF ?

Original source

Related problems