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

4
LINES

< > BotCompany Repo | #1018645 // smoothResizeBWImage_heightOnly

JavaX fragment (include)

static BWImage smoothResizeBWImage_heightOnly(BWImage img, int newH) {
  if (newH == img.getHeight()) ret img;
  ret new BWImage(resizeImage(img.getBufferedImage(), img.getWidth(), newH, Image.SCALE_SMOOTH));
}

Author comment

Began life as a copy of #1004224

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018645
Snippet name: smoothResizeBWImage_heightOnly
Eternal ID of this version: #1018645/3
Text MD5: cd827bf3e7c7f9cbcef621d6e1b7146e
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-08 03:02:58
Source code size: 213 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 357
Version history: 2 change(s)
Referenced in: [show references]