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

9
LINES

< > BotCompany Repo | #1007793 // loadImage2_cached - load BufferedImage, cached in memory

JavaX fragment (include)

static Map<S, BufferedImage> loadImage2_cached_cache = synchroTreeMap();

// s = snippetIDOrURL
static BufferedImage loadImage2_cached(String s) {
  BufferedImage img = loadImage2_cached_cache.get(s);
  if (img == null)
    loadImage2_cached_cache.put(s, img = loadBufferedImage(s));
  ret img;
}

Author comment

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: 545 / 573
Version history: 3 change(s)
Referenced in: [show references]