Libraryless. Click here for Pure Java version (5329L/30K).
static BufferedImage simpleRenderableToImage(int w, int h, Color backgroundColor default white(), SimpleRenderable r) { var img = newImage(w, h, backgroundColor); r.renderOn(imageGraphics(img)); ret img; }
Began life as a copy of #1033623
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034072 |
Snippet name: | simpleRenderableToImage |
Eternal ID of this version: | #1034072/1 |
Text MD5: | 5dfdeff1c410791d292a8533973d8409 |
Transpilation MD5: | d6242f0a60481b89c3186a3e8bfee335 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-20 14:31:02 |
Source code size: | 215 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 127 / 179 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |