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)

static new ThreadLocal<Bool> imageGraphics_antiAlias;

static Graphics2D imageGraphics(BufferedImage img) {
  ret !isFalse(imageGraphics_antiAlias.get()) ? antiAliasGraphics(img) : createGraphics(img);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

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

Formerly at http://tinybrain.de/1006926 & http://1006926.tinybrain.de