Libraryless. Click here for Pure Java version (9185L/51K).
1 | static int widthToHeight(int w, int h, int newWidth) { |
2 | ret heightForWidth(w, h, newWidth); |
3 | } |
4 | |
5 | meta-for BufferedImage also as WidthAndHeight { |
6 | static int widthToHeight(BufferedImage img, int newWidth) { |
7 | ret heightForWidth(img.getWidth(), img.getHeight(), newWidth); |
8 | } |
9 | |
10 | static int widthToHeight(int newWidth, BufferedImage img) { |
11 | ret widthToHeight(img, newWidth); |
12 | } |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031993 |
Snippet name: | widthToHeight - synonym of heightForWidth |
Eternal ID of this version: | #1031993/4 |
Text MD5: | 68ede72500e50df74446e08ef81bcf66 |
Transpilation MD5: | b6f8b97bcba810a540b8b7086e9c5805 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-01 19:49:35 |
Source code size: | 397 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 187 / 261 |
Version history: | 3 change(s) |
Referenced in: | [show references] |