uDesktopDuplication icon indicating copy to clipboard operation
uDesktopDuplication copied to clipboard

Access only part of screen

Open wtesler opened this issue 2 years ago • 1 comments

I was wondering if there is any way to configure the code to only capture a subset of the screen, for example a square in the center of the screen. Has anyone thought about this use case?

Thanks, Will

wtesler avatar Jan 10 '22 02:01 wtesler

It is not currently possible to capture only a specific part of the desktop. This is because the Desktop Duplication API is designed to return the entire desktop, and there is a large overhead to crop a portion of it.

Please try using the Loupe component instead, which crops the entire texture and displays a portion of it in a shader. A sample is included in the project.

20161203232152

hecomi avatar Jan 10 '22 02:01 hecomi