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

5
LINES

< > BotCompany Repo | #1035229 // scaleWidthAndHeight

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

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

static WidthAndHeight scaleWidthAndHeight(double scale, WidthAndHeight size) {
  ret size == null ?: new WidthAndHeightImpl(
    iround(scale*size.w()),
    iround(scale*size.h()));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035229
Snippet name: scaleWidthAndHeight
Eternal ID of this version: #1035229/2
Text MD5: 523d083cf428041d1472d74d9c5f7f80
Transpilation MD5: ace981bcfd5f1b721020ed8e15aa0757
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-18 00:07:06
Source code size: 187 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 64 / 100
Version history: 1 change(s)
Referenced in: [show references]