Uses 108K of libraries. Click here for Pure Java version (16303L/115K).
1 | !7 |
2 | |
3 | module Grayscale extends DynImageSurface { |
4 | start { |
5 | ownResource(onClipboardImage(voidfunc(final BufferedImage img) { |
6 | temp enter(); |
7 | thread { setImage(new BWImage(img)); } |
8 | })); |
9 | } |
10 | |
11 | BWImage getBWImage() { ret toBWImage(getImage()); } |
12 | |
13 | visualize { |
14 | ret withCenteredButtons(super.visualize(), |
15 | "Auto-contrast", rThread { setImage(bwAutoContrast(getBWImage())) }, |
16 | "Contrast+", rThread { setImage(bwContrast(1.1, getBWImage())) } |
17 | ); |
18 | } |
19 | } |
Began life as a copy of #1018876
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018877 |
Snippet name: | Grayscale Image [Dyn Module, just copy to clipboard] |
Eternal ID of this version: | #1018877/11 |
Text MD5: | d4467ac8e5fb133426245e5c6860d9fb |
Transpilation MD5: | 42a298573aed78ab444e7d0ccb131fab |
Author: | stefan |
Category: | javax / image analysis |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-27 12:52:20 |
Source code size: | 501 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 354 / 514 |
Version history: | 10 change(s) |
Referenced in: | [show references] |