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

6
LINES

< > BotCompany Repo | #1006205 // rgbAllPixelsInAreaEqualTo

JavaX fragment (include)

1  
static bool rgbAllPixelsInAreaEqualTo(RGBImage img, int x1, int y1, int x2, int y2, int color) {
2  
  for (int y = y1; y < y2; y++)
3  
    for (int x = x1; x < x2; x++)
4  
      if (img.getInt(x, y) != color) false;
5  
  true;
6  
}

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: 544 / 552
Referenced in: [show references]