Uses 108K of libraries. Click here for Pure Java version (16303L/115K).
!7 module Grayscale extends DynImageSurface { start { ownResource(onClipboardImage(voidfunc(final BufferedImage img) { temp enter(); thread { setImage(new BWImage(img)); } })); } BWImage getBWImage() { ret toBWImage(getImage()); } visualize { ret withCenteredButtons(super.visualize(), "Auto-contrast", rThread { setImage(bwAutoContrast(getBWImage())) }, "Contrast+", rThread { setImage(bwContrast(1.1, getBWImage())) } ); } }
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: | 352 / 510 |
Version history: | 10 change(s) |
Referenced in: | [show references] |