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

7
LINES

< > BotCompany Repo | #1035299 // alphaChannelFromPixels

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (35L/1K).

static byte[] alphaChannelFromPixels(int[] pixels) {
  int n = pixels.length;
  byte[] pixels2 = new[n];
  for i to n:
    pixels2[i] = (byte) (pixels[i] >> 24);
  ret pixels2;
}

Author comment

Began life as a copy of #1006977

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035299
Snippet name: alphaChannelFromPixels
Eternal ID of this version: #1035299/1
Text MD5: e10afe0aaa163a2897b202c0946bc5c6
Transpilation MD5: eca7bc7864be89099ea9160dc25119cc
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-29 03:43:38
Source code size: 184 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 209
Referenced in: [show references]