Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can This Work With WPF #5

Closed
AlBannaTechno opened this issue Oct 9, 2020 · 3 comments
Closed

Can This Work With WPF #5

AlBannaTechno opened this issue Oct 9, 2020 · 3 comments

Comments

@AlBannaTechno
Copy link

First Thankyou for this awesome work,

is there a way to use it with WPF?

@secile
Copy link
Owner

secile commented Oct 21, 2020

Hello, thank you for your question.
I am not familiar with WPF, but as I tried,
this source code could be used if you add reference to 'System.Drawing'.

GetBitmap() returns System.Drawing.Bitmap, so you have to convert to BitmapSource
if you want to use in BitmapSource of Image control.

@AlBannaTechno
Copy link
Author

@secile thank you, I used another library but still use the same trick since that library also supports only windows form.

So your answer is 100% Correct, thank you.

@secile secile closed this as completed Oct 26, 2020
@yangjieshao
Copy link

yangjieshao commented Nov 2, 2020

@AlBannaTechno
you can use like this
#6

Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants