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

13
LINES

< > BotCompany Repo | #1031993 // widthToHeight - synonym of heightForWidth

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

Libraryless. Click here for Pure Java version (9185L/51K).

static int widthToHeight(int w, int h, int newWidth) {
  ret heightForWidth(w, h, newWidth);
}

meta-for BufferedImage also as WidthAndHeight {
  static int widthToHeight(BufferedImage img, int newWidth) {
    ret heightForWidth(img.getWidth(), img.getHeight(), newWidth);
  }
  
  static int widthToHeight(int newWidth, BufferedImage img) {
    ret widthToHeight(img, newWidth);
  }
}

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: 186 / 260
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)