question

JunPingLi-8972 avatar image
0 Votes"
JunPingLi-8972 asked RitaHan-MSFT commented

ScreenCapture with filter windows

If I want to collect desktop data and filter some windows, what API can Microsoft provide? The magnification API was used before, but the key API MagSetImageScalingCallback is no longer maintained, and there is a memory leak problem with this API, which can not be used well. So I'd like to ask what new API can I use to support this function? Mainly want to get YUV data

windows-api
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can check Capturing an Image to see if it helps. YUV bitmap is supported. For filter, you can use SetWindowDisplayAffinity with WDA_EXCLUDEFROMCAPTURE (new introduced in 20H1) (excluded windows area is transparent) or with WDA_MONITOR (excluded windows area is black)




1 Vote 1 ·

Worth to mention that starting from version 20H1 old API works BAD and it's broken and nobody cares. WDA_MONITOR just does not work.
So it's pure regression, and this stupid bug exist in both 20H1 and 20H2 in all minor build from .1 to the latest.

0 Votes 0 ·

Here is a similar issue has been reported via Feedback Hub. You can help to vote up this feedback if you have such issue. Thanks for your contribution.


0 Votes 0 ·

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered

You can see this article : New Ways to do Screen Capture


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.