I used to work with WFA but no I want to try the WPF platform, too.
I need to assign an existing bitmap to the image control.
private void Window_Loaded(object sender, RoutedEventArgs e)
{
Bitmap sc = screenshot();
ima.Source = new Bitmap(sc);
}
this line just not working: ima.Source = new Bitmap(sc);
in picturebox it i can only use this
ima.Image = new Bitmap(sc);
but now its throwing an error:
Cannot implicitly convert type 'System.Drawing.Bitmap' to 'System.Windows.Media.ImageSource'.