Libraryless. Click here for Pure Java version (5316L/34K).
static BWImage bwBlackBorder(double w, double h, BWImage img) { BWImage img2 = new(img.w()+iround(w*2), img.h()+iround(h*2), 0); bwCopy(img, img2, iroundHalfDown (w), iroundHalfDown (h)); ret img2; }
Began life as a copy of #1006966
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: | #1027290 | 
| Snippet name: | bwBlackBorder - add black border around BWImage | 
| Eternal ID of this version: | #1027290/5 | 
| Text MD5: | 0c9849ed07a1cdbda386074ceaaf33d4 | 
| Transpilation MD5: | 1adbf3b6d7e98155a10a36cced00bfcc | 
| Author: | stefan | 
| Category: | javax / imaging | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2020-09-12 03:16:31 | 
| Source code size: | 209 bytes / 5 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 417 / 563 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |