Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1015467 // showZoomedScreenClipInPlace

JavaX fragment (include)

1  
static void showZoomedScreenClipInPlace(final Rect r, final BufferedImage clip, final double zoom, final double seconds) {
2  
  swing {
3  
    BufferedImage scaledClip = scaleBufferedImage(clip, zoom);
4  
    JWindow win = makeWindow(jImageLabel(scaledClip));
5  
    Pt p = centerOfRect(r);
6  
    int w = scaledClip.getWidth(), h = scaledClip.getHeight();
7  
    win.setBounds(p.x-w/2, p.y-h/2, w, h);
8  
    win.setAlwaysOnTop(true);
9  
    win.setVisible(true);
10  
    disposeWindowAfter(win, seconds);
11  
  }
12  
}

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: 302 / 386
Version history: 1 change(s)
Referenced in: [show references]