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

6
LINES

< > BotCompany Repo | #1004226 - resizeImageSnippet [creates new PNG snippet]

JavaX fragment (include)

// returns new image id
static S resizeImageSnippet(S imageID, int newW) {
  BufferedImage img = resizeImage(loadImage2(imageID), newW);
  S title = getSnippetTitle(imageID) + " [" + img.getWidth() + "*" + img.getHeight() + "]";
  ret uploadImage(title, toPNG(img));
}

Author comment

Began life as a copy of #1004225

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004226
Snippet name: resizeImageSnippet [creates new PNG snippet]
Eternal ID of this version: #1004226/1
Text MD5: 5d4ee3f99bb70b8694a146a760fb6c01
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-10 17:48:50
Source code size: 273 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 413
Referenced in: #1006654 #1023956