Closed Kybs0 closed 2 years ago
Thanks for the comment!
PrintWindow is not designed to work with AllowsTransparency being set to true. The best option here is to switch to Windows.Graphics.Capture API. Keep in mind that the API only works on RS5 and above. Here's a GitHub sample repository which I think should help with how to use the API.
I'm going to close this issue, but feel free to reopen if you feel that your issue has not been addressed!
Hi, I'm trying to capture window by using Win32.PrintWindow。 My purspose is capture any kind of window with the window handle,then use the captured image to do more operations.
But I found captured image is black when capturing window has set AllowsTransparency="True".I have captured all window that valid and visible in my screens,some windows displays black:
I found other devlopers also met this question:
A fixed issue is similar to my problem above: https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/issues/41. Help confirm if it's the same issue,and hope any reply. Thanks!
Here is my environment