Libraryless. Click here for Pure Java version (3037L/17K).
1 | static BufferedImage scaleBufferedImageToWidth(int width, BufferedImage img) { |
2 | ret scaleImage(img, width/(double) img.getWidth()); |
3 | } |
Began life as a copy of #1015385
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029764 |
Snippet name: | scaleBufferedImageToWidth |
Eternal ID of this version: | #1029764/3 |
Text MD5: | ebb0a6c1b0b51fc1db4c9a84f38d9ffa |
Transpilation MD5: | 388331b5e196c421b1544cbb952cd5ca |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-12 02:19:30 |
Source code size: | 136 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 275 |
Version history: | 2 change(s) |
Referenced in: | [show references] |