Libraryless. Click here for Pure Java version (9619L/55K).
1 | static BufferedImage renderAll(int w, int h, Iterable<? extends G2Drawable> drawables) { |
2 | ret renderAll(drawables, whiteImage(w, h)); |
3 | } |
4 | |
5 | static BufferedImage renderAll(Iterable<? extends G2Drawable> drawables, BufferedImage canvas) { |
6 | fOr (d : drawables) d?.drawOn(canvas); |
7 | ret canvas; |
8 | } |
9 | |
10 | static BufferedImage renderAll(Iterable<? extends G2Drawable> drawables, WidthAndHeight size) { |
11 | ret renderAll(size.w(), size.h(), drawables); |
12 | } |
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: | 200 / 228 |
Version history: | 4 change(s) |
Referenced in: | [show references] |