Libraryless. Click here for Pure Java version (9168L/51K).
static interface MakesBufferedImage extends WidthAndHeight { BufferedImage getBufferedImage(); public default void drawAt(Graphics2D g, int x, int y) { g.drawImage(getBufferedImage(), x, y, null); } meta-for getWidth also as getHeight { default int getWidth() { ret getBufferedImage().getWidth(); } } }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015472 |
Snippet name: | MakesBufferedImage |
Eternal ID of this version: | #1015472/7 |
Text MD5: | 479fa8c02d24eeaeb7f45bd3bf9013f0 |
Transpilation MD5: | d2da6958f08d1b6078f63c28dada7d19 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-03 00:44:37 |
Source code size: | 336 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 525 / 1226 |
Version history: | 6 change(s) |
Referenced in: | [show references] |