static RGBImage rgbWhiteBorder(int w, RGBImage img) { RGBImage img2 = new RGBImage(img.w()+w*2, img.h()+w*2, Color.white); rgbCopy(img, img2, w, w); ret img2; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006966 |
Snippet name: | rgbWhiteBorder - add white border around RGBImage |
Eternal ID of this version: | #1006966/2 |
Text MD5: | 844de778c2c5da43a2b6076768968b77 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-21 13:38:50 |
Source code size: | 170 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 427 / 488 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027290 - bwBlackBorder - add black border around BWImage |