1 | static Map<S, BufferedImage> loadImage2_cached_cache = synchroTreeMap(); |
2 | |
3 | // s = snippetIDOrURL |
4 | static BufferedImage loadImage2_cached(String s) {
|
5 | BufferedImage img = loadImage2_cached_cache.get(s); |
6 | if (img == null) |
7 | loadImage2_cached_cache.put(s, img = loadBufferedImage(s)); |
8 | ret img; |
9 | } |
Began life as a copy of #1005886
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: | #1007793 |
| Snippet name: | loadImage2_cached - load BufferedImage, cached in memory |
| Eternal ID of this version: | #1007793/4 |
| Text MD5: | 8119b2bc5dd0c9c32a78807cee70bdc3 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-07 13:21:48 |
| Source code size: | 306 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 789 / 816 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |