Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access only part of screen #55

Open
wtesler opened this issue Jan 10, 2022 · 1 comment
Open

Access only part of screen #55

wtesler opened this issue Jan 10, 2022 · 1 comment

Comments

@wtesler
Copy link

wtesler commented Jan 10, 2022

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

@hecomi
Copy link
Owner

hecomi commented Jan 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants