I want to draw a System.Windows.Media.Imaging.BitmapSource in a picture Box.
in WPF application i do it with this :
image1.Source =BitmapSource.Create(....................);
but now I have a form. I import PresentationCore.dll in my form to have BitmapSource;
but now how I can draw or show it On a PictureBox like this ? :
pictureBox1.Image=BitmapSource.Create(.....................);
Please help me.
Thanks.
why do you want/need to use wpf-specific things?
look at this snippet
How to convert BitmapSource to Bitmap
Usage:
If you want to open an image file…: