static BWImage bwWhiteBorder(double w, double h, BWImage img) { BWImage img2 = new(img.w()+iround(w*2), img.h()+iround(h*2), 1); bwCopy(img, img2, iroundHalfDown (w), iroundHalfDown(h)); ret img2; }
Began life as a copy of #1027290
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034930 |
Snippet name: | bwWhiteBorder - add white border around BWImage |
Eternal ID of this version: | #1034930/3 |
Text MD5: | 480be9ab29623a635e5d10dbd43224ea |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-15 23:34:13 |
Source code size: | 208 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 123 / 139 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |