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

5
LINES

< > BotCompany Repo | #1034072 // simpleRenderableToImage

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5329L/30K).

1  
static BufferedImage simpleRenderableToImage(int w, int h, Color backgroundColor default white(), SimpleRenderable r) {
2  
  var img = newImage(w, h, backgroundColor);
3  
  r.renderOn(imageGraphics(img));
4  
  ret img;
5  
}

Author comment

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: 128 / 180
Referenced in: [show references]