1 | static bool bwImageSectionsIdentical(BWImage big, BWImage pat, int x, int y) { |
2 | int wp = pat.getWidth(), hp = pat.getHeight(); |
3 | int w = big.getWidth(), h = big.getHeight(); |
4 | for (int yy = 0; yy < hp; yy++) |
5 | for (int xx = 0; xx < wp; xx++) |
6 | if (big.getByte(x+xx, y+yy) != pat.getByte(xx, yy)) |
7 | false; |
8 | true; |
9 | } |
Began life as a copy of #1005919
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: | #1005928 |
Snippet name: | bwImageSectionsIdentical |
Eternal ID of this version: | #1005928/1 |
Text MD5: | 0b4e096f54a743a1df0b0f9e232a28f7 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-12 22:01:39 |
Source code size: | 335 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 493 / 556 |
Referenced in: | [show references] |