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

7
LINES

< > BotCompany Repo | #1034487 // widthAndHeight

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

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

static WidthAndHeight widthAndHeight(BufferedImage image) {
  ret image == null ?: widthAndHeight(image.getWidth(), image.getHeight());
}

static WidthAndHeight widthAndHeight(int w, int h default w) {
  ret new WidthAndHeightFinal(w, h);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034487
Snippet name: widthAndHeight
Eternal ID of this version: #1034487/5
Text MD5: 5d05fc7edd2f8a3cd09831334d68ed1a
Transpilation MD5: c76b66136843b3cca7000f849a924cf2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-21 07:39:23
Source code size: 246 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 184 / 278
Version history: 4 change(s)
Referenced in: [show references]