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

8
LINES

< > BotCompany Repo | #1027147 // clipPNG - clip PNG to new file

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

Libraryless. Click here for Pure Java version (4347L/29K).

static File clipPNG(File in, File out, Rect r) {
  savePNG(clipBufferedImage(loadImage2(in), r), out);
  ret out;
}

static File clipPNG(File in, File out, int x, int y, int w, int h) {
  ret clipPNG(in, out, Rect(x, y, w, h));
}

Author comment

Began life as a copy of #1004225

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: #1027147
Snippet name: clipPNG - clip PNG to new file
Eternal ID of this version: #1027147/2
Text MD5: ed3cb0c2cc1e55e391182dfd653bfb9f
Transpilation MD5: 22a9db11b3b79e23322fccedd7aca1f1
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-22 14:32:43
Source code size: 236 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 282
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)