Libraryless. Click here for Pure Java version (35L/1K).
1 | static int[] pixelsWithInvertedAlpha(int[] pixels) {
|
2 | int n = pixels.length; |
3 | int[] pixels2 = new[n]; |
4 | for i to n: |
5 | pixels2[i] = pixels[i]^0xFF000000; |
6 | ret pixels2; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035298 |
| Snippet name: | pixelsWithInvertedAlpha |
| Eternal ID of this version: | #1035298/1 |
| Text MD5: | 8da7e88ab8bb8f8d2c922537a212fc23 |
| Transpilation MD5: | 56027fd485852b3b5bc8b1b083246397 |
| 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:29:33 |
| Source code size: | 179 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 385 / 481 |
| Referenced in: | [show references] |