1 | // from: https://stackoverflow.com/questions/14416107/int-array-to-bufferedimage |
2 | // pixels are RGB pixels |
3 | static BufferedImage bufferedImageWithoutAlpha(int[] pixels, int w, int h) {
|
4 | ret intArrayToBufferedImageWithoutAlpha(pixels, w, h); |
5 | } |
6 | |
7 | static BufferedImage bufferedImageWithoutAlpha(int w, int h, int[] pixels) {
|
8 | ret intArrayToBufferedImageWithoutAlpha(pixels, w, h); |
9 | } |
10 | |
11 | static BufferedImage bufferedImageWithoutAlpha(int w, int h, Color color) {
|
12 | ret bufferedImageWithoutAlpha(w, h, repIntAsArray(w*h, colorToInt(color))); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034532 |
| Snippet name: | bufferedImageWithoutAlpha - synonym of intArrayToBufferedImageWithoutAlpha |
| Eternal ID of this version: | #1034532/3 |
| Text MD5: | a9a04453a9d0816bcdf65fb676398110 |
| Author: | someone |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-20 19:12:35 |
| Source code size: | 547 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 440 / 455 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |