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

3
LINES

< > BotCompany Repo | #1027211 // bwResizeToHeightSmooth - resize BWImage smoothly

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

Libraryless. Click here for Pure Java version (5148L/33K).

static BWImage bwResizeToHeightSmooth(BWImage img, int h) {
  ret new BWImage(scaleImage(img.getBufferedImage(), ((double) h)/img.getHeight()));
}

Author comment

Began life as a copy of #1007157

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027211
Snippet name: bwResizeToHeightSmooth - resize BWImage smoothly
Eternal ID of this version: #1027211/1
Text MD5: e2fe299b8bc615e236a1b4d15045d837
Transpilation MD5: f5cc10fbb99f1e76fdf552ad6db149ae
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-26 11:12:50
Source code size: 148 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 220
Referenced in: [show references]