1 | static Map<BufferedImage, O> createGraphics_modulators = synchroIdentityHashMap(); |
2 | |
3 | static Graphics2D createGraphics(BufferedImage img) {
|
4 | Graphics2D g = img.createGraphics(); |
5 | O mod = createGraphics_modulators.get(img); |
6 | if (mod != null) |
7 | callF(mod, g); |
8 | ret g; |
9 | } |
10 | |
11 | // mod: voidfunc(Graphics2D) |
12 | static void createGraphics_modulate(BufferedImage img, O mod) {
|
13 | mapPut2(createGraphics_modulators, img, mod); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010643 |
| Snippet name: | createGraphics |
| Eternal ID of this version: | #1010643/1 |
| Text MD5: | bd637d9eab7c8e547a1e4f6b48a34c74 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-24 01:06:29 |
| Source code size: | 428 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 708 / 779 |
| Referenced in: | [show references] |