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

5
LINES

< > BotCompany Repo | #1010764 // imageFromInt

JavaX fragment (include)

static BufferedImage imageFromInt(int i, int w, int h) {
  RGBImage rgb = new RGBImage(w, h, Color.white);
  fillArray(rgb.pixels, i);
  ret rgb.getBufferedImage();
}

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: #1010764
Snippet name: imageFromInt
Eternal ID of this version: #1010764/2
Text MD5: 0fefc065b6dfaef42d1be8e318beb4c7
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-30 04:26:03
Source code size: 170 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 475
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)