static bool rgbAllPixelsInAreaEqualTo(RGBImage img, int x1, int y1, int x2, int y2, int color) { for (int y = y1; y < y2; y++) for (int x = x1; x < x2; x++) if (img.getInt(x, y) != color) false; true; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006205 |
| Snippet name: | rgbAllPixelsInAreaEqualTo |
| Eternal ID of this version: | #1006205/1 |
| Text MD5: | 74ec90c3d60cf178db62c8d12f140f52 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-23 13:51:27 |
| Source code size: | 221 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 744 / 768 |
| Referenced in: | [show references] |