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

3
LINES

< > BotCompany Repo | #1029764 // scaleBufferedImageToWidth

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

Libraryless. Click here for Pure Java version (3037L/17K).

static BufferedImage scaleBufferedImageToWidth(int width, BufferedImage img) {
  ret scaleImage(img, width/(double) img.getWidth());
}

Author comment

Began life as a copy of #1015385

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029764
Snippet name: scaleBufferedImageToWidth
Eternal ID of this version: #1029764/3
Text MD5: ebb0a6c1b0b51fc1db4c9a84f38d9ffa
Transpilation MD5: 388331b5e196c421b1544cbb952cd5ca
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-12 02:19:30
Source code size: 136 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 274
Version history: 2 change(s)
Referenced in: [show references]