How to convert a System.Drawing.Bitmap
to Microsoft.UI.Xaml.Media.ImageSource
?
#1374
-
Hello. I'm the new for using WinUI 3 on .NET 6. I've implemented a data structure that automatically generates a picture that is of type I tried to search for solutions on Stackoverflow. Although I found a possible solution to convert, that solution will introduce a new type So... I don't know how to convert a Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There should be no way other than building from pixels. The suggested solution is not to use GDI+ and |
Beta Was this translation helpful? Give feedback.
There should be no way other than building from pixels. The suggested solution is not to use GDI+ and
System.Drawing
at all.It could be even easier to save the image into some file format (.bmp/.png).