Libraryless. Click here for Pure Java version (6311L/35K).
sclass ScreenCamStream extends SourceTriggeredStream<BufferedImage> is Steppable { settable volatile Rect area = screenBounds(0); public bool step() { if (ended()) false; catchError(lambda0 shootImpl); true; } long frameCount() { ret elementCount(); } void shootImpl { var img = shootScreenWithMeta(area).image; assertInstanceOf(ScreenShotMeta, getMetaSrc(img)); newElement(img); } void useScreen(int iScreen) { area = screenBounds_safe(iScreen); } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033670 |
Snippet name: | ScreenCamStream |
Eternal ID of this version: | #1033670/16 |
Text MD5: | 7208cc47c3bbb75e1e35be3fe950feff |
Transpilation MD5: | 93e1fb557e226f9b4a1d0929150044b2 |
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 01:06:29 |
Source code size: | 524 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 365 |
Version history: | 15 change(s) |
Referenced in: | #1033672 - BWIntegralImageStream #1034011 - ScreenCamStreamWithMeta #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |