1 | static BufferedImage scaleImageToHeight(BufferedImage img, int newH) { |
2 | int newW = iround(img.getWidth()*(double) newH/img.getHeight()); |
3 | ret resizeImage(img, newW, newH); |
4 | } |
Began life as a copy of #1004224
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019389 |
Snippet name: | scaleImageToHeight - preserves transparency |
Eternal ID of this version: | #1019389/1 |
Text MD5: | b718932f0750420a60bd09c32fab7577 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-04 19:05:35 |
Source code size: | 178 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 312 / 353 |
Referenced in: | [show references] |