Libraryless. Click here for Pure Java version (9168L/51K).
1 | static interface MakesBufferedImage extends WidthAndHeight { |
2 | BufferedImage getBufferedImage(); |
3 | |
4 | public default void drawAt(Graphics2D g, int x, int y) { |
5 | g.drawImage(getBufferedImage(), x, y, null); |
6 | } |
7 | |
8 | meta-for getWidth also as getHeight { |
9 | default int getWidth() { ret getBufferedImage().getWidth(); } |
10 | } |
11 | } |
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: | 527 / 1229 |
Version history: | 6 change(s) |
Referenced in: | [show references] |