Libraryless. Click here for Pure Java version (9509L/56K).
sclass SurfaceShowingAutoZoomedImage > JVolatileImageSurface { gettable BufferedImage image; *() { this(null); } *(BufferedImage image) { volatileMode(false); // seems it's not even faster setImage(image); } void setImage(BufferedImage image) { this.image = image; setRenderable(new FitImageInComponentRenderable(image) .backgroundColor(null)); repaint(); } void noImage() { setImage(null); } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034406 |
Snippet name: | SurfaceShowingAutoZoomedImage |
Eternal ID of this version: | #1034406/5 |
Text MD5: | e1c138558d72813f5cd5d89bfd09d15e |
Transpilation MD5: | 2f7c98189ef552836eb4387941abeadb |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-05 23:52:38 |
Source code size: | 462 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 134 / 236 |
Version history: | 4 change(s) |
Referenced in: | [show references] |