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

4
LINES

< > BotCompany Repo | #1029929 // hsnippetimg_scaleToWidth

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

Libraryless. Click here for Pure Java version (2877L/18K).

sS hsnippetimg_scaleToWidth(int width, S imageID, int originalWidth, int originalHeight, O... params) {
  ret hsnippetimg(imageID, paramsPlus(params, +width,
    height := calcHeight(originalWidth, originalHeight, width)));
}

Author comment

Began life as a copy of #1014500

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029929
Snippet name: hsnippetimg_scaleToWidth
Eternal ID of this version: #1029929/3
Text MD5: 731e27352c09d4265d80eaf834fe2c1a
Transpilation MD5: 4e511582933c01092ea14b17f3243c8d
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-07 20:33:49
Source code size: 228 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 258
Version history: 2 change(s)
Referenced in: [show references]