Libraryless. Click here for Pure Java version (11758L/66K).
1 | ifclass RGBImage |
2 | static BWImage toBWImage(RGBImage img) { |
3 | ret toBW(img); |
4 | } |
5 | endif |
6 | |
7 | static BWImage toBWImage(BufferedImage img) { |
8 | ret img == null ?: new BWImage(img); |
9 | } |
10 | |
11 | static BWImage toBWImage(MakesBufferedImage img) { |
12 | if (img == null) null; |
13 | if (img cast BWImage) ret img; |
14 | ret new BWImage(toBufferedImage(img)); |
15 | } |
Began life as a copy of #1009127
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014995 |
Snippet name: | toBWImage - extended synonym of toBW |
Eternal ID of this version: | #1014995/6 |
Text MD5: | 6280d62f27b9bf11a10d428326b5ee85 |
Transpilation MD5: | 1a89a9d790cd3ebe5e59aefcecfbd1ac |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-02-13 18:39:19 |
Source code size: | 337 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 463 / 582 |
Version history: | 5 change(s) |
Referenced in: | [show references] |