Libraryless. Click here for Pure Java version (9611L/55K).
static BufferedImage drawableToImage(WidthAndHeight size, G2Drawable drawable) { var img = whiteImage(size); drawable?.drawOn(img); ret img; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035259 |
Snippet name: | drawableToImage |
Eternal ID of this version: | #1035259/3 |
Text MD5: | 5cd5da9cb1e254f30826e3cfabb75af5 |
Transpilation MD5: | e209c028484a6720acac89edc24984b9 |
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 09:34:22 |
Source code size: | 152 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 128 / 193 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035607 - renderAll |