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

12
LINES

< > BotCompany Repo | #1035607 // renderAll

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

Libraryless. Click here for Pure Java version (9619L/55K).

static BufferedImage renderAll(int w, int h, Iterable<? extends G2Drawable> drawables) {
  ret renderAll(drawables, whiteImage(w, h));
}

static BufferedImage renderAll(Iterable<? extends G2Drawable> drawables, BufferedImage canvas) {
  fOr (d : drawables) d?.drawOn(canvas);
  ret canvas;
}

static BufferedImage renderAll(Iterable<? extends G2Drawable> drawables, WidthAndHeight size) {
  ret renderAll(size.w(), size.h(), drawables);
}

Author comment

Began life as a copy of #1035259

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035607
Snippet name: renderAll
Eternal ID of this version: #1035607/5
Text MD5: 9be7329b24f87dc53ed99b3bd1e36ba8
Transpilation MD5: c62a40a151e9350f24142ead7a6f5c46
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-27 10:03:29
Source code size: 451 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 227
Version history: 4 change(s)
Referenced in: [show references]