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

Possible to grab partial desktop? #30

Open
nailbuster opened this issue May 9, 2021 · 1 comment
Open

Possible to grab partial desktop? #30

nailbuster opened this issue May 9, 2021 · 1 comment

Comments

@nailbuster
Copy link

Testing latest and it works great!

Is there a setting/possibility/instructions to support capturing Desktop(window title area only)

Capturing window works ok, desktop works ok....but i'd like to capture the window area from desktop (have some overlapped windows in that area)... and don't want to always grab/crop entire desktop.

thanks.

@hecomi
Copy link
Owner

hecomi commented Jun 5, 2021

Sorry for the late reply... Currently, uWindowCapture captures the entire window. However, cropping can be achieved by calculating the UV scale and offset using the width and height of the window, and using the Tiling and Offset parameters of the texture (another asset of mine, uDesktopDuplication, uses this method for cropping: https://github.com/hecomi/uDesktopDuplication/blob/4ba7caf792659d715a61cdf0ef6c0b616cb3b4ff/Assets/uDesktopDuplication/Examples/Scripts/Loupe.cs#L38-L43)

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