Libraryless. Click here for Pure Java version (4623L/26K).
1 | static BufferedImage drawOnWhite(int w, int h, IVF1<Graphics2D> draw) { |
2 | var img = whiteImage(w, h); |
3 | draw?.get(createGraphics(img)); |
4 | ret img; |
5 | } |
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: | #1033744 |
Snippet name: | drawOnWhite |
Eternal ID of this version: | #1033744/1 |
Text MD5: | 130a6e4fd9880205a4f8fc058894b0bd |
Transpilation MD5: | 6ccf37e8e53b6d549822146377a07a5c |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-01 20:59:48 |
Source code size: | 152 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 179 / 249 |
Referenced in: | [show references] |