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

6
LINES

< > BotCompany Repo | #1033122 // intMatrixToBufferedImage

JavaX fragment (include)

static BufferedImage intMatrixToBufferedImage(Matrix<Int> m) {
  if (m == null) null;
  int w = m.getWidth(), h = m.getHeight();
  int[] pixels = matrixToIntArray(m);
  ret newBufferedImage(w, h, pixels);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033122
Snippet name: intMatrixToBufferedImage
Eternal ID of this version: #1033122/1
Text MD5: ac933a2fd02c8304c7a06f661611ad5f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-15 15:53:20
Source code size: 211 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 160 / 189
Referenced in: [show references]