Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1033811 // G2Drawable

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (34L/1K).

1  
interface G2Drawable {
2  
  void drawOn(Graphics2D g);
3  
  
4  
  default void drawOn(BufferedImage img) {
5  
    drawOn(img.createGraphics());
6  
  }
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033811
Snippet name: G2Drawable
Eternal ID of this version: #1033811/4
Text MD5: 15c6794d3e37c532c903bceada3f1458
Transpilation MD5: b57cf264be62a06c9595a2c59de07109
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-15 17:58:30
Source code size: 143 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 191
Version history: 3 change(s)
Referenced in: [show references]