Warning: session_start(): open(/var/lib/php/sessions/sess_5r69aj904i1ho6f66i79b1p0kg, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
widthForHeight [1031934]

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).

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