static ImageSurface showImageWithBlurSliders(S name, final BufferedImage img) { final ImageSurface is = showImage(name, img); final SimpleLiveValue<Float> lvX = floatLiveValue(); final SimpleLiveValue<Float> lvY = floatLiveValue(); Runnable update = r { is.setImage(new BoxBlurFilter(iround(lvX!), iround(lvY!)).filter(img, null)) }; lvX.onChange(update); lvY.onChange(update); addToWindowAndPack(is, vstack( withLabel("Horizontal blur:", jLiveValueSliderZeroToX(10, lvX)), withLabel("Vertical blur:", jLiveValueSliderZeroToX(10, lvY)))); ret is; }
Began life as a copy of #1018687
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: | #1018736 |
Snippet name: | showImageWithBlurSliders (horizontal/vertical box blur) |
Eternal ID of this version: | #1018736/4 |
Text MD5: | d8e15efcf3bff4b0e31bc592bcae26a5 |
Author: | stefan |
Category: | javax / imaging / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-12 12:16:17 |
Source code size: | 599 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 317 / 365 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1018738 - showImageWithGrayToBlackSlider |