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: include/ScreenCapture.h
+14-22
Original file line number
Diff line number
Diff line change
@@ -2,33 +2,33 @@
2
2
#include<memory>
3
3
#include<functional>
4
4
#include<vector>
5
+
#include<atomic>
5
6
6
7
namespaceSL {
7
8
namespaceScreen_Capture {
8
9
structCapturedImage {
9
10
std::shared_ptr<char> Data;
10
11
int Height = 0;
11
12
int Width = 0;
12
-
int RelativeTop = 0;
13
-
intRelativeLeft = 0;
14
-
intAbsoluteTop = 0;
15
-
int AbsoluteLeft = 0;
13
+
//Offset numbers are the number of pixels of offset within the current monitor
14
+
intOffsetx = 0;
15
+
intOffsetY = 0;
16
+
16
17
int ScreenIndex;
17
18
constint PixelStride = 4;//in bytes
18
19
};
19
20
structMonitor{
20
21
int Index;
21
22
int Height;
22
23
int Width;
24
+
//Offsets are the number of pixels that a monitor can be from the origin. For example, users can shuffle their monitors around so this affects their offset.
// Used to indicate a transition event occurred e.g. PnpStop, PnpStart, mode change, TDR, desktop switch and the application needs to recreate the duplication interface
// Used to indicate a transition event occurred e.g. PnpStop, PnpStart, mode change, TDR, desktop switch and the application needs to recreate the duplication interface
0 commit comments