Transpiled version (3868L) is out of date.
import java.awt.geom.AffineTransform; // Benchmark on screenshot for 1 MP: ~5.2ms // uses bilinear interpolation static BufferedImage scaleImage(BufferedImage before, double scaleX, double scaleY default scaleX) { ret scaleImageWithOp(before, scaleX, scaleY, AffineTransformOp.TYPE_BILINEAR); } static BufferedImage scaleImage(double scale, BufferedImage before) { ret scaleImage(before, scale); }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003737 |
Snippet name: | scaleImage |
Eternal ID of this version: | #1003737/5 |
Text MD5: | d013acccc00389854a4d9cd820980fbc |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-15 18:38:16 |
Source code size: | 417 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 717 / 772 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015435 - scaleBufferedImage - synonym of scaleImage #1019191 - scaleImage_noSmooth #1033311 - scaleImageWithOp #1033312 - scaleImage_bilinear - use Java's "bilinear" scaling |