-
Notifications
You must be signed in to change notification settings - Fork 186
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
Capture area of a monitor #119
Comments
No, right now you need to capture the entire monitor and copy out the portion you're interested in using CopySubresourceRegion. |
do you have a short code snippet for this? |
I don't have a self-contained snippet to share with you, but the idea is straight forward. Let's say that you have two textures, texture A comes from the capture API and texture B is the texture that will receive the pixels you're interested in. You would call
|
Here are some snippets of the relevant code I used. It's just the relevant lines of my code, It won't run.
An issue I had is that I had to make sure the width and height of the region is 32bit aligned, but that is probably because I use the data in an openGL texture. You might not have that issue. |
Is there a way to capture only an area of the desktop or monitor by a given Rectangle?
The text was updated successfully, but these errors were encountered: