// from: https://stackoverflow.com/questions/14416107/int-array-to-bufferedimage // pixels are RGB pixels static BufferedImageWithMeta imageFromPixels(int[] pixels, int w, int h default pixels.length/w) { ret intArrayToBufferedImage(pixels, w, h); } static BufferedImageWithMeta imageFromPixels(int w, int... pixels) { ret intArrayToBufferedImage(w, pixels); }
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: | 137 / 144 |
Referenced in: | [show references] |