Transpiled version (31L) is out of date.
1 | // Note: pixels need to have alpha value set |
2 | static BufferedImage intArrayToBufferedImage_new(int[] pixels, int w, int h) { |
3 | var img = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); |
4 | img.getRaster().setPixels(0, 0, w, h, pixels); |
5 | ret img; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032152 |
Snippet name: | intArrayToBufferedImage_new - faster than intArrayToBufferedImage? Note: It doesn't even work |
Eternal ID of this version: | #1032152/4 |
Text MD5: | bbfa0475e63f3b72f25de8fab6fda043 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-16 22:16:53 |
Source code size: | 256 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 172 / 274 |
Version history: | 3 change(s) |
Referenced in: | [show references] |