1 | static int shootWindow2_delay = 500; |
2 | |
3 | static BufferedImage shootWindow2(final Window w) { |
4 | assertNotOnAWTThread(); |
5 | final new Var<BufferedImage> v; |
6 | w.toFront(); |
7 | final new Flag flag; |
8 | awtLater(shootWindow2_delay, r { |
9 | try { |
10 | v.set(shootScreen2(w.getBounds())); |
11 | } finally { |
12 | flag.raise(); |
13 | } |
14 | }); |
15 | flag.waitUntilUp(); |
16 | ret v.get(); |
17 | } |
Began life as a copy of #1006168
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: | #1006170 |
Snippet name: | shootWindow2 - bring window to front, delay, take screenshot of it (works only in non-AWT thread) |
Eternal ID of this version: | #1006170/1 |
Text MD5: | 24eb07d8224e61171e2770ca32721fed |
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 12:46:39 |
Source code size: | 377 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 522 / 536 |
Referenced in: | [show references] |