Libraryless. Click here for Pure Java version (6270L/35K).
1 | sclass ScreenCamStreamWithMeta extends SourceTriggeredStream<ScreenShotMeta> is Steppable { |
2 | settable volatile Rect area = screenBounds(0); |
3 | |
4 | public bool step() { |
5 | if (ended()) false; |
6 | catchError(lambda0 shootImpl); |
7 | true; |
8 | } |
9 | |
10 | long frameCount() { ret elementCount(); } |
11 | |
12 | void shootImpl { |
13 | newElement(shootScreenWithMeta(area)); |
14 | } |
15 | |
16 | void useScreen(int iScreen) { |
17 | area = screenBounds_safe(iScreen); |
18 | } |
19 | } |
Began life as a copy of #1033670
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034011 |
Snippet name: | ScreenCamStreamWithMeta |
Eternal ID of this version: | #1034011/1 |
Text MD5: | 245fbc9061f244c0df2c8ba62c56f009 |
Transpilation MD5: | dbecfab7b46b9107939e64a28246b6da |
Author: | stefan |
Category: | javax / screen recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-17 00:12:16 |
Source code size: | 451 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 149 / 210 |
Referenced in: | [show references] |