static void showZoomedScreenClipInPlace(final Rect r, final BufferedImage clip, final double zoom, final double seconds) { swing { BufferedImage scaledClip = scaleBufferedImage(clip, zoom); JWindow win = makeWindow(jImageLabel(scaledClip)); Pt p = centerOfRect(r); int w = scaledClip.getWidth(), h = scaledClip.getHeight(); win.setBounds(p.x-w/2, p.y-h/2, w, h); win.setAlwaysOnTop(true); win.setVisible(true); disposeWindowAfter(win, seconds); } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015467 |
| Snippet name: | showZoomedScreenClipInPlace |
| Eternal ID of this version: | #1015467/2 |
| Text MD5: | 81e47ef52239068fcde733520d7f3313 |
| Author: | stefan |
| Category: | javax / imaging / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-15 00:15:25 |
| Source code size: | 495 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 567 / 664 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |