Libraryless. Click here for Pure Java version (3329L/23K/83K).
!752 p { final JWindow window = showAnimationInTopRightCorner("#1005611", "Please click in the area you would like to select"); // TODO: onClosing(window, "trackOneClick_cancel"); trackOneClick(voidfunc(Point p) { window.dispose(); final ImageSurface is = imageSurface(shootScreen2()); is.setZoom(4); JFrame frame = showCenterFrame("Please select area", jScrollPane(is)); setFrameBounds(frame, centerScreenPart(0.75)); addToWindow(frame, imageSelectionDepend(is, jbutton("OK", r { Rectangle r = is.selection; if (r != null) { disposeWindow(is); showAnimation("#1005611", "You marked " + r, 3); pointArrowsToArea(r, 5); } }))); is.centerPoint(p); }); }
Began life as a copy of #1005630
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005662 |
Snippet name: | Let user mark an area on the screen (in zoomed ImageSurface) [WORKS] |
Eternal ID of this version: | #1005662/1 |
Text MD5: | c9276b0f2fbaf473415df72709fc498d |
Transpilation MD5: | f02d3859195f1f32b50e47c7f4166859 |
Author: | stefan |
Category: | javax / gui / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-02 16:07:49 |
Source code size: | 769 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 537 / 630 |
Referenced in: | #1005673 - letUserMarkScreenArea #1005674 - Test letUserMarkScreenArea |