1 | static int img_width(BWImage image, int y) {
|
2 | int x2 = img_rightmostPoint(image, y); |
3 | int x1 = img_leftmostPoint(image, y); |
4 | return max(0, x2-x1); |
5 | } |
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: | #1005857 |
| Snippet name: | img_width |
| Eternal ID of this version: | #1005857/1 |
| Text MD5: | c53f422460531809e72b3a3a294b19dc |
| 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:03:46 |
| Source code size: | 155 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 758 / 757 |
| Referenced in: | [show references] |