简体   繁体   中英

How to capture the screen except for some windows in UWP app?

I'm developing an screen recorder app with Media Capture API in UWP. Now I'm trying to make the application able to record the screen except the windows of my application.I have heard that Magnification API can help me to do this if I develop the application in Win32 environment,but how to do this in UWP and Media Capture API?

How to capture the screen except for some windows in UWP app?

Starting in Windows 10, version 1803 , the Windows.Graphics.Capture namespace provides APIs to acquire frames from a display or application window.

You could use the GraphicsCapturePicker class to invoke the system picker UI. The end user uses this UI to select the display or application window of which to take screen captures. The picker will return a GraphicsCaptureItem that will be used to create a GraphicsCaptureSession.

Please refer this document that contains complete sample code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM