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

7
LINES

< > BotCompany Repo | #1035022 // str_px

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

Libraryless. Click here for Pure Java version (5181L/29K).

1  
sS str_px(int w, int h) {
2  
  ret n2(w) + "*" + n2(h) + "px";
3  
}
4  
5  
sS str_px(WidthAndHeight image) {
6  
  ret image == null ?: str_px(image.getWidth(), image.getHeight());
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035022
Snippet name: str_px
Eternal ID of this version: #1035022/2
Text MD5: 63234b50864f641b7642416a601b0e5b
Transpilation MD5: 7236994d16eb61d1888651bb93f433c6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-25 21:34:27
Source code size: 172 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 133 / 195
Version history: 1 change(s)
Referenced in: [show references]