Libraryless. Click here for Pure Java version (9298L/52K).
1 | static BufferedImage imageFromFunctionWithAlpha(int w, int h default w, IF2_Int f) { |
2 | int[] pixels = new[w*h]; |
3 | int i = 0; |
4 | for y to h: |
5 | for x to w: |
6 | pixels[i++] = f.get(x, y); |
7 | ret intArrayToBufferedImageWithAlpha(pixels, w, h); |
8 | } |
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: | 152 / 185 |
Referenced in: | [show references] |