static BWImage iBWImageToBWImage(IBWImage img) { int w = img.getWidth(), h = img.getHeight(); BWImage out = new(w, h); for y to h: for x to w: out.setPixel(x, y, img.getFloatPixel(x, y)); ret out; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022981 |
Snippet name: | iBWImageToBWImage |
Eternal ID of this version: | #1022981/2 |
Text MD5: | 61d24223e63d2747da5e77874a8627f3 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-17 07:55:39 |
Source code size: | 211 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 257 / 308 |
Version history: | 1 change(s) |
Referenced in: | [show references] |