1 | static BWImage iBWImageToBWImage(IBWImage img) { |
2 | int w = img.getWidth(), h = img.getHeight(); |
3 | BWImage out = new(w, h); |
4 | for y to h: for x to w: out.setPixel(x, y, img.getFloatPixel(x, y)); |
5 | ret out; |
6 | } |
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: | 259 / 310 |
Version history: | 1 change(s) |
Referenced in: | [show references] |