1 | static int img_rightmostPoint(BWImage image, int y) { |
2 | int x2 = image.getWidth(); |
3 | while (x2 > 0 && image.getPixel(x2-1, y) == 1f) |
4 | --x2; |
5 | return x2; |
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: | #1005859 |
Snippet name: | img_rightMostPoint |
Eternal ID of this version: | #1005859/1 |
Text MD5: | 3354eae9f6e00e9410c037b68a98371a |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-11 08:04:47 |
Source code size: | 162 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 530 / 534 |
Referenced in: | [show references] |