Visitar URL original
Possible to grab partial desktop? · Issue #30 · hecomi/uWindowCapture · GitHub
Skip to content

Possible to grab partial desktop? #30

Open

Description

@nailbuster

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.

Activity

  1. hecomi commented on Jun 5, 2021

    @hecomi
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions