d2phap / DXControl

🖌️ A WinForms hybrid control that supports Direct2D and GDI+ drawing
MIT License
25 stars 5 forks source link

How to save the content of the demo window as an image? #6

Closed Charltsing closed 4 months ago

Charltsing commented 4 months ago

捕获

How to save the content of the demo window as an image? Do you plan to add the feature of saving window content in the demo

d2phap commented 4 months ago

I don't have a solution right now, but I found this doc, you can try: https://learn.microsoft.com/en-us/windows/win32/direct2d/save-direct2d-content-to-an-image-file#what-you-need-to-know

Charltsing commented 4 months ago

I use CopyFromRenderTarget to save window content DXControl-save.zip

shot