Is it possible to crop screenshot at gpu level

545 views Asked by At

My final goal is to get screenshots of a cropped area on the screen as fast as possible.

I'm using the the desktop duplication api with sharpdx to retrieve the full screenshot from windows according to the official sample :

https://github.com/sharpdx/SharpDX-Samples/blob/master/Desktop/Direct3D11.1/ScreenCapture/Program.cs.

I'm currently cropping at CPU level with a pinned memory bitmap and Buffer.BlockCopy on the raw bytes which, IMO, cannot be considerably anymore faster.

Is it possible to apply a simple crop operation at GPU level?

0

There are 0 answers