Libraryless. Click here for Pure Java version (9298L/52K).
static BufferedImage imageFromFunctionWithAlpha(int w, int h default w, IF2_Int f) { int[] pixels = new[w*h]; int i = 0; for y to h: for x to w: pixels[i++] = f.get(x, y); ret intArrayToBufferedImageWithAlpha(pixels, w, h); }
Began life as a copy of #1034862
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036070 |
Snippet name: | imageFromFunctionWithAlpha |
Eternal ID of this version: | #1036070/1 |
Text MD5: | 98b4ae768b3656252017b4bba8c65789 |
Transpilation MD5: | 19c5621934788c3a4b38ccebfb189510 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-05 03:01:29 |
Source code size: | 250 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 151 / 184 |
Referenced in: | [show references] |