1 | static void rgbFill(RGBImage img, int x1, int y1, int w, int h, int color) {
|
2 | for y to h: for x to w: img.setPixel(x1+x, y1+y, color); |
3 | } |
4 | |
5 | static void rgbFill(RGBImage img, Rect r, RGB color) {
|
6 | rgbFill(img, r.x, r.y, r.w, r.h, color.getInt()); |
7 | } |
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: | 756 / 786 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |