// O : voidfunc(BufferedImage, Rect) svoid screenQuickSelect(final O onSelect) { awtIfNecessary { minimizeConsole(); final BufferedImage screen = shootScreen2(); 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); restoreConsole(); callF(onSelect, screen, new Rect(r)); }); awt { // do later is.zoomToDisplaySize(); } } }
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: | 554 / 503 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |