Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1020584 // reduceImage332to111_inPlace

JavaX fragment (include)

static Image332 reduceImage332to111_inPlace(Image332 img) {
  byte[] b = img.pixels;
  for i over b:
    b[i] &= 0x02 | 0x10 | 0x80;
  ret img;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020584
Snippet name: reduceImage332to111_inPlace
Eternal ID of this version: #1020584/1
Text MD5: 2bb0da037a0579220e3ecd041c202b9f
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-27 17:30:03
Source code size: 150 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 321
Referenced in: [show references]