Libraryless. Click here for Pure Java version (35L/1K).
| 1 | static byte[] alphaChannelFromPixels(int[] pixels) {
 | 
| 2 | int n = pixels.length; | 
| 3 | byte[] pixels2 = new[n]; | 
| 4 | for i to n: | 
| 5 | pixels2[i] = (byte) (pixels[i] >> 24); | 
| 6 | ret pixels2; | 
| 7 | } | 
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: | 366 / 476 | 
| Referenced in: | [show references] |