- Status
- Offline
- Joined
- Mar 3, 2026
- Messages
- 381
- Reaction score
- 7
Looking for a fast way to grab frames for your external pixel project?
I came across a clean .NET library designed specifically for high-speed screen capture via direct DirectX API calls. This isn't your standard slow GDI+ approach. It is built for computer vision tasks—meaning it is exactly what you need for AI aimbots or external overlays where latency is the enemy.
The best part? No heavy dependencies. It is lean, focused, and handles raw frames without the overhead of video encoding fluff found in bloatware recording software.
Implementation Examples
Basic capture setup for your loop:
If you need more control, such as selecting specific GPUs or displays for multi-monitor setups, you can use the Duplicator class:
Technical Breakdown
The source is available on GitHub for those who know how to look for it. It is a solid base for any developer tired of BitBlt limitations.
Anyone tried benchmarking this against a custom SharpDX implementation?
You cant view this link please login.
I came across a clean .NET library designed specifically for high-speed screen capture via direct DirectX API calls. This isn't your standard slow GDI+ approach. It is built for computer vision tasks—meaning it is exactly what you need for AI aimbots or external overlays where latency is the enemy.
The best part? No heavy dependencies. It is lean, focused, and handles raw frames without the overhead of video encoding fluff found in bloatware recording software.
Implementation Examples
Basic capture setup for your loop:
Code:
using var capturer = new ScreenCapturer();
Frame frame;
while (true)
if (capturer.CaptureFrame(&frame))
// Process your frame here
If you need more control, such as selecting specific GPUs or displays for multi-monitor setups, you can use the Duplicator class:
Code:
GraphicDevice device;
GraphicDevice.EnumDevice(&device, index: 0);
Screen screen;
Screen.EnumScreen(&screen, &device, index: 0);
Duplicator duplicator;
Duplicator.Create(&device, &screen, &duplicator);
Frame frame;
while (true)
if (duplicator.CaptureFrame(&frame))
// Execute CV logic here
Technical Breakdown
- DirectX Integration: Uses native DX calls to bypass the performance bottlenecks of the standard Windows API.
- Frame Object: An efficient alternative to the heavy Bitmap class, though it includes a method to get a GDI Bitmap if your legacy code requires it.
- Device Enumeration: Explicitly target GraphicDevice and Screen objects, crucial for bypasses involving specific hardware configurations.
- Zero Dependencies: Keep your binary footprint small and avoid triggering heuristic flags associated with common bulky libraries.
Since this lacks video encoders, do not expect to use it for recording clips. This is strictly for frame-by-frame analysis. If you are building a CV-based aimbot or a triggerbot, this provides a solid foundation using the Desktop Duplication API without the usual mess of boilerplate code.
The source is available on GitHub for those who know how to look for it. It is a solid base for any developer tired of BitBlt limitations.
Anyone tried benchmarking this against a custom SharpDX implementation?