1 | static RGBImage rgbContrastAndBrightness(RGBImage img, float scaleFactor, float offset) { |
2 | BufferedImage i = cloneBufferedImage(img.getBufferedImage()); |
3 | new RescaleOp(scaleFactor, offset, null).filter(i, i); |
4 | ret new RGBImage(i); |
5 | } |
6 | |
7 | static RGBImage rgbContrastAndBrightness(float scaleFactor, float offset, RGBImage img) { |
8 | ret rgbContrastAndBrightness(img, scaleFactor, offset); |
9 | } |
10 | |
11 | static RGBImage rgbContrastAndBrightness(float scaleFactor, float offset, BufferedImage img) { |
12 | BufferedImage i = cloneBufferedImage(img); |
13 | new RescaleOp(scaleFactor, offset, null).filter(i, i); |
14 | ret new RGBImage(i); |
15 | } |
Began life as a copy of #1015458
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015488 |
Snippet name: | rgbContrastAndBrightness |
Eternal ID of this version: | #1015488/4 |
Text MD5: | dd282815ac2125cff5830835b1cb3681 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-15 02:03:10 |
Source code size: | 623 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 403 / 438 |
Version history: | 3 change(s) |
Referenced in: | [show references] |