Skip to content

How to convert a System.Drawing.Bitmap to Microsoft.UI.Xaml.Media.ImageSource? #1374

Discussion options

You must be logged in to vote

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).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@KyouyamaKazusa0805
Comment options

@huoyaoyuan
Comment options

@KyouyamaKazusa0805
Comment options

Answer selected by btueffers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants