Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1031934 // widthForHeight

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4929L/27K).

1  
// binary legacy signature
2  
static int widthForHeight(int w, int h, int newHeight) {
3  
  ret iround(newHeight*doubleRatio(w, h));
4  
}
5  
6  
static int widthForHeight(double w, double h, int newHeight) {
7  
  ret iround(newHeight*doubleRatio(w, h));
8  
}
9  
10  
static int widthForHeight(WidthAndHeight img, int newHeight) {
11  
  ret widthForHeight(img.getWidth(), img.getHeight(), newHeight);
12  
}

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: 191 / 274
Version history: 2 change(s)
Referenced in: [show references]