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