Libraryless. Click here for Pure Java version (14613L/101K).
1 | !7 |
2 | |
3 | sclass ImageSaver extends DynPrintLog { |
4 | transient File latestSaved; |
5 | |
6 | start { |
7 | dm_requireModule("#1016673/LiveWebCam"); |
8 | doEvery(10000, r saveDefault); |
9 | } |
10 | |
11 | void saveDefault { |
12 | O mod = dm_getModule(dm_findModule("#1016673/LiveWebCam")); |
13 | File file = javaxDataDir("Web Cam Snapshots/live-" + dateWithSecondsForFile() + ".jpg"); |
14 | saveJPEGVerbose(file, (BufferedImage) call(mod, 'getImage)); |
15 | latestSaved = file; |
16 | } |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017736 |
Snippet name: | WebCam Image Saver [saves an image every 10 seconds] |
Eternal ID of this version: | #1017736/3 |
Text MD5: | 255080a29c412e9a06e375c2f040a90a |
Transpilation MD5: | adf5968059a8801293649e8ed71dbf0c |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-14 17:07:50 |
Source code size: | 462 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 443 / 539 |
Version history: | 2 change(s) |
Referenced in: | [show references] |