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

Printing output #109

Open
FraserElectronics opened this issue Mar 2, 2023 · 2 comments
Open

Printing output #109

FraserElectronics opened this issue Mar 2, 2023 · 2 comments

Comments

@FraserElectronics
Copy link

Is it possible to print rendered graphics?
I can use CreateBitmapGraphics to get the rendered output into a bitmap but how to I then get that bitmap into a GDI bitmap that I can send to the printer?

Any help would be appreciated.

Andy

@agfp
Copy link

agfp commented Jul 27, 2023

D2D.CreateBitmapGraphics(...), creates an hardware optimized ID2D1Bitmap and, AFAIK, you can't print it.

You need to create a new renderTarget using the imageFactory, and then you'll be able to save, print and share with .NET the created bitmap.

@FraserElectronics
Copy link
Author

@agfp Thanks, I will look into it.

Andy

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

2 participants