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

5
LINES

< > BotCompany Repo | #1006926 // imageGraphics - get Graphics2D from BufferedImage, anti-aliasing enabled by default

JavaX fragment (include)

1  
static new ThreadLocal<Bool> imageGraphics_antiAlias;
2  
3  
static Graphics2D imageGraphics(BufferedImage img) {
4  
  ret !isFalse(imageGraphics_antiAlias.get()) ? antiAliasGraphics(img) : createGraphics(img);
5  
}

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: #1006926
Snippet name: imageGraphics - get Graphics2D from BufferedImage, anti-aliasing enabled by default
Eternal ID of this version: #1006926/4
Text MD5: 13cc37bdd6278cb51ee30fa5c1d0c593
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:21:31
Source code size: 207 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 568 / 982
Version history: 3 change(s)
Referenced in: [show references]