Libraryless. Click here for Pure Java version (9611L/55K).
1 | static BufferedImage drawableToImage(WidthAndHeight size, G2Drawable drawable) { |
2 | var img = whiteImage(size); |
3 | drawable?.drawOn(img); |
4 | ret img; |
5 | } |
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: | 129 / 195 |
Version history: | 2 change(s) |
Referenced in: | [show references] |