1 | // O : voidfunc(BufferedImage, Rect) |
2 | svoid screenQuickSelect(final O onSelect) { |
3 | awtIfNecessary { |
4 | minimizeConsole(); |
5 | final BufferedImage screen = shootScreen2(); |
6 | final ImageSurface is = new ImageSurface(screen); |
7 | showMaximizedFrame("Quick Screen Select", jscroll(is)); |
8 | onMouseRelease(is, r { |
9 | Rectangle r = is.getSelection(); |
10 | if (r == null) ret; |
11 | disposeFrame(is); |
12 | restoreConsole(); |
13 | callF(onSelect, screen, new Rect(r)); |
14 | }); |
15 | awt { // do later |
16 | is.zoomToDisplaySize(); |
17 | } |
18 | } |
19 | } |
Began life as a copy of #1006153
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: | #1006159 |
Snippet name: | screenQuickSelect |
Eternal ID of this version: | #1006159/1 |
Text MD5: | ad9a9cc52fe5c3d25958e227b93f1a9a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-22 00:38:07 |
Source code size: | 559 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 553 / 503 |
Referenced in: | [show references] |