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)); }
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: | 196 / 279 |
Version history: | 1 change(s) |
Referenced in: | [show references] |