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

13
LINES

< > BotCompany Repo | #1006835 // saveJPEG - synonym of saveJPG + swapped parameters

JavaX fragment (include)

static File saveJPEG(BufferedImage img, File file) {
  saveJPG(img, file);
  ret file;
}

static File saveJPEG(File file, BufferedImage img) {
  saveJPG(img, file);
  ret file;
}

static File saveJPEG(S path, BufferedImage img) {
  ret saveJPEG(img, newFile(path));
}

Author comment

Began life as a copy of #1004891

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006835
Snippet name: saveJPEG - synonym of saveJPG + swapped parameters
Eternal ID of this version: #1006835/11
Text MD5: a69974de988b35004e27b39e10322c95
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-03 03:34:56
Source code size: 279 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 545 / 607
Version history: 10 change(s)
Referenced in: [show references]