Libraryless. Click here for Pure Java version (12839L/75K).
static IBinaryImage regionToIBinaryImage(IImageRegion region) { Rect r = region.bounds(); ret iBinaryImageFromFunction(r.w, r.h, (x, y) -> !region.contains(r.x+x, r.y+y)); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1035823 |
| Snippet name: | regionToIBinaryImage |
| Eternal ID of this version: | #1035823/1 |
| Text MD5: | 2f818f99c9d102ff8716f85b380070e3 |
| Transpilation MD5: | 60bfa12e38452c0dfe59e48b2618355e |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-01 22:18:51 |
| Source code size: | 185 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 382 / 470 |
| Referenced in: | [show references] |