-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Save a rendered bitmap? (Read back a rendered image) #44
Comments
Hi! I found this article. Is there any help in getting the content on the screen into a bitmap (on disk or in memory to save or export)? https://www.programmersought.com/article/84934931885/ best |
Do you mean to capture the entire screen? or just the view of your application window. If the entire screen you can consider to use a simple way like this: Direct2D uses GPU memory so there is no easy way to get a Direct2D rendered result, you should render your entire scene into a memory bitmap, and use the bitmap for what you want, show the bitmap on screen, or saving the bitmap onto disk. |
Hi! The second option would be great. Is there a way to create a bitmap, render the scene to it instead of the scene and the save the bitmap? in GDI what I did was that instead of sending the graphics object of the form/user control I created a bitmap and created a graphics object of it and send that one to the scene renderer. I am imaging I could do the same here? And then how do I get the bitmap from the D2Dbitmap object. Sort of the reverse of convertGDIbitmaptoD2Dbitmap. All the best! Christian |
Hello! I am looking for a way to save the drawn D2Dbitmap to disk. Please, help me |
Hi @dvoris. Public Shared Function CaptureWindow(ctrl As Control) As Bitmap
|
Hi again!
Once again... Amazing lib 👍
I am trying to find out a way to render the screen to a bitmap (to save it). Cant really figure it out how to do it, can you point me in the right direction?
Thanks
Christian
The text was updated successfully, but these errors were encountered: