1 | // from: https://stackoverflow.com/questions/14416107/int-array-to-bufferedimage |
2 | // pixels are RGB pixels |
3 | static BufferedImageWithMeta imageFromPixels(int[] pixels, int w, int h default pixels.length/w) { |
4 | ret intArrayToBufferedImage(pixels, w, h); |
5 | } |
6 | |
7 | |
8 | |
9 | static BufferedImageWithMeta imageFromPixels(int w, int... pixels) { |
10 | ret intArrayToBufferedImage(w, pixels); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035724 |
Snippet name: | imageFromPixels - synonym of intArrayToBufferedImage |
Eternal ID of this version: | #1035724/1 |
Text MD5: | 2c51fecc130c4e81ae5128c938be109f |
Author: | someone |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-14 21:50:29 |
Source code size: | 371 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 139 / 147 |
Referenced in: | [show references] |