1 | static BufferedImage intMatrixToBufferedImage(Matrix<Int> m) { |
2 | if (m == null) null; |
3 | int w = m.getWidth(), h = m.getHeight(); |
4 | int[] pixels = matrixToIntArray(m); |
5 | ret newBufferedImage(w, h, pixels); |
6 | } |
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: | 161 / 191 |
Referenced in: | [show references] |