Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1036071 // intArrayToBufferedImageWithAlpha - synonym of intArrayToBufferedImage

JavaX fragment (include)

// from: https://stackoverflow.com/questions/14416107/int-array-to-bufferedimage
// pixels are RGB pixels
static BufferedImageWithMeta intArrayToBufferedImageWithAlpha(int[] pixels, int w, int h default pixels.length/w) {
  ret intArrayToBufferedImage(pixels, w, h);
}



static BufferedImageWithMeta intArrayToBufferedImageWithAlpha(int w, int... pixels) {
  ret intArrayToBufferedImage(w, pixels);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036071
Snippet name: intArrayToBufferedImageWithAlpha - synonym of intArrayToBufferedImage
Eternal ID of this version: #1036071/1
Text MD5: 9e5912d7555c590bc10d525d1d1d90ca
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-05 03:01:52
Source code size: 405 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 121 / 130
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)