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).

1  
!752
2  
3  
p-awt {
4  
  final BufferedImage screen = shootScreenHidingConsole();
5  
  final ImageSurface is = new ImageSurface(screen);
6  
  showMaximizedFrame("Quick Screen Select", jscroll(is));
7  
  onMouseRelease(is, r {
8  
    Rectangle r = is.getSelection();
9  
    if (r == null) ret;
10  
    disposeFrame(is);
11  
    showImage(clipBufferedImage(screen, r));
12  
  });
13  
  awt {
14  
    is.zoomToDisplaySize();
15  
  }
16  
}

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: 521 / 839
Referenced in: [show references]