1 | static File saveScreenshot() { |
2 | BufferedImage img = shootScreen2(); |
3 | File file = new File(screenshotDir(), dateWithSecondsForFile() + ".png"); |
4 | savePNG(file, img); |
5 | print("Screenshot saved at " + f2s(file) + " (" + fileSize(file) + " bytes)"); |
6 | ret file; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012921 |
Snippet name: | saveScreenshot |
Eternal ID of this version: | #1012921/4 |
Text MD5: | 39314e1eba5b4c74113327638a4d3399 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-29 10:23:22 |
Source code size: | 267 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 454 / 465 |
Version history: | 3 change(s) |
Referenced in: | [show references] |