Table of Contents

Enum Win32ScreencapMethod

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll
Win32 screencap method

No bitwise OR, select ONE method only.

No default value. Client should choose one as default.

Different applications use different rendering methods, there is no universal solution.

| Method                  | Speed     | Compatibility | Require Admin | Background Support | Notes                            |
|-------------------------|-----------|---------------|---------------|--------------------|----------------------------------|
| GDI                     | Fast      | Medium        | No            | No                 |                                  |
| FramePool               | Very Fast | Medium        | No            | Yes                | Requires Windows 10 1903+        |
| DXGI_DesktopDup         | Very Fast | Low           | No            | No                 | Desktop duplication (full screen)|
| DXGI_DesktopDup_Window  | Very Fast | Low           | No            | No                 | Desktop duplication then crop    |
| PrintWindow             | Medium    | Medium        | No            | Yes                |                                  |
| ScreenDC                | Fast      | High          | No            | No                 |                                  |

Note: When a window is minimized on Windows, all screencap methods will fail. Avoid minimizing the target window.

public enum Win32ScreencapMethod : ulong

Fields

DXGI_DesktopDup = 4
DXGI_DesktopDup_Window = 8
FramePool = 2
GDI = 1
None = 0
PrintWindow = 16
ScreenDC = 32