Transpiled version (8416L) is out of date.
1 | // uses # for black and _ for white |
2 | sS bwImageToString(BWImage img) {
|
3 | if (img == null) null; |
4 | int w = img.getWidth(), h = img.getHeight(); |
5 | ret lines(countIterator(h, y -> |
6 | join(countIterator(w, x -> img.getInt(x, y) >= 128 ? '_' : '#')))); |
7 | } |
Began life as a copy of #1033939
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034979 |
| Snippet name: | bwImageToString |
| Eternal ID of this version: | #1034979/4 |
| Text MD5: | 301799cb4293e26dd56c3623e81263e2 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-19 20:31:34 |
| Source code size: | 255 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 368 / 487 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |