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

7
LINES

< > BotCompany Repo | #1006498 // rgbFill

JavaX fragment (include)

static void rgbFill(RGBImage img, int x1, int y1, int w, int h, int color) {
  for y to h: for x to w: img.setPixel(x1+x, y1+y, color);
}

static void rgbFill(RGBImage img, Rect r, RGB color) {
  rgbFill(img, r.x, r.y, r.w, r.h, color.getInt());
}

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: #1006498
Snippet name: rgbFill
Eternal ID of this version: #1006498/2
Text MD5: d1201ccfb2bfb9028a235e292fc3d56f
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-07 00:12:42
Source code size: 255 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 527 / 556
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1006658 - rgbFillRect - synonym of rgbFill