Libraryless. Click here for Pure Java version (4929L/27K).
// binary legacy signature static int widthForHeight(int w, int h, int newHeight) { ret iround(newHeight*doubleRatio(w, h)); } static int widthForHeight(double w, double h, int newHeight) { ret iround(newHeight*doubleRatio(w, h)); } static int widthForHeight(WidthAndHeight img, int newHeight) { ret widthForHeight(img.getWidth(), img.getHeight(), newHeight); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031934 |
| Snippet name: | widthForHeight |
| Eternal ID of this version: | #1031934/3 |
| Text MD5: | 43383b3b0d2b75d6242de9354380a6c5 |
| Transpilation MD5: | d9c0fa3ad6261910afb11b1512ccf85a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-12-29 02:55:44 |
| Source code size: | 380 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 424 / 560 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |