Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1012921 // saveScreenshot

JavaX fragment (include)

static File saveScreenshot() {
  BufferedImage img = shootScreen2();
  File file = new File(screenshotDir(), dateWithSecondsForFile() + ".png");
  savePNG(file, img);
  print("Screenshot saved at " + f2s(file) + " (" + fileSize(file) + " bytes)");
  ret file;
}

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: 384 / 395
Version history: 3 change(s)
Referenced in: [show references]