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

29
LINES

< > BotCompany Repo | #1006492 // quickShowImage - show an image in always the same frame

JavaX fragment (include)

1  
static ImageSurface quickShowImage() {
2  
  ret quickShowImage(currentImage());
3  
}
4  
5  
static ImageSurface quickShowImage(BufferedImage image) {
6  
  ret quickShowImage(autoTitle(), image);
7  
}
8  
9  
static ImageSurface quickShowImage(S title, BufferedImage image) {
10  
  ret quickShowZoomedImage(title, image, 1.0);
11  
}
12  
13  
static ImageSurface quickShowImage(S title, RGBImage image) {
14  
  ret quickShowImage(title, image.getBufferedImage());
15  
}
16  
17  
static ImageSurface quickShowImage(RGBImage image) {
18  
  ret quickShowImage(image.getBufferedImage());
19  
}
20  
21  
ifclass BWImage
22  
static ImageSurface quickShowImage(BWImage image) {
23  
  ret quickShowImage(image.getBufferedImage());
24  
}
25  
endif
26  
27  
static ImageSurface quickShowImage(BufferedImage image, S title) {
28  
  ret quickShowImage(title, image);
29  
}

Author comment

Began life as a copy of #1005387

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006492
Snippet name: quickShowImage - show an image in always the same frame
Eternal ID of this version: #1006492/5
Text MD5: 3880e43710c0d38c3d403446502b7519
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-13 16:32:41
Source code size: 783 bytes / 29 lines
Pitched / IR pitched: No / No
Views / Downloads: 534 / 582
Version history: 4 change(s)
Referenced in: [show references]