You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ScreenCapture.NET/DirectX/DX11ScreenCapture.cs
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ public sealed class DX11ScreenCapture : IScreenCapture
38
38
39
39
privatereadonlyobject_captureLock=new();
40
40
41
+
privatereadonlybool_useNewDuplicationAdapter;
41
42
privateint_indexCounter=0;
42
43
43
44
/// <inheritdoc />
@@ -74,12 +75,17 @@ public sealed class DX11ScreenCapture : IScreenCapture
74
75
/// <summary>
75
76
/// Initializes a new instance of the <see cref="DX11ScreenCapture"/> class.
76
77
/// </summary>
78
+
/// <remarks>
79
+
/// Note that setting useNewDuplicationAdapter to true requires to call <c>DPIAwareness.Initalize();</c> and prevents the capture from running in a WPF-thread.
80
+
/// </remarks>
77
81
/// <param name="factory">The <see cref="IDXGIFactory1"/> used to create underlying objects.</param>
78
82
/// <param name="display">The <see cref="Display"/> to duplicate.</param>
/// <param name="useNewDuplicationAdapter">Indicates if the DuplicateOutput1 interface should be used instead of the older DuplicateOutput. Currently there's no real use in setting this to true.</param>
0 commit comments