Libraryless. Click here for Pure Java version (5168L/33K).
static BWImage bwResizeSmooth(BWImage img, int w) { ret new BWImage(scaleImage(img.getBufferedImage(), ((double) w)/img.getWidth())); } static BWImage bwResizeSmooth(BWImage img, int w, int h) { ret new BWImage(scaleImage(img.getBufferedImage(), ((double) w)/img.getWidth(), ((double) h)/img.getHeight())); } static BWImage bwResizeSmooth(int w, BWImage img) { ret bwResizeSmooth(img, w); } static BWImage bwResizeSmooth(int w, BufferedImage img) { ret new BWImage(scaleImage(img, ((double) w)/img.getWidth())); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1007157 |
Snippet name: | bwResizeSmooth - resize BWImage smoothly |
Eternal ID of this version: | #1007157/7 |
Text MD5: | 8266a25b99533acb4a71532d7456745d |
Transpilation MD5: | 6f612b9e44f971fe83f8bfd185bc6ffd |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-01 01:43:52 |
Source code size: | 553 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 552 / 670 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027211 - bwResizeToHeightSmooth - resize BWImage smoothly |