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

16
LINES

< > BotCompany Repo | #1006153 // Quick area select in screenshot [WORKS]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (5279L/38K/134K).

!752

p-awt {
  final BufferedImage screen = shootScreenHidingConsole();
  final ImageSurface is = new ImageSurface(screen);
  showMaximizedFrame("Quick Screen Select", jscroll(is));
  onMouseRelease(is, r {
    Rectangle r = is.getSelection();
    if (r == null) ret;
    disposeFrame(is);
    showImage(clipBufferedImage(screen, r));
  });
  awt {
    is.zoomToDisplaySize();
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006153
Snippet name: Quick area select in screenshot [WORKS]
Eternal ID of this version: #1006153/1
Text MD5: 537456dc266ed9531338913ef1d1b893
Transpilation MD5: 32396ed4455f4da3b67f95a574d77f04
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-25 19:06:15
Source code size: 398 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 534 / 857
Referenced in: [show references]