1 | static ImageSurface quickShowZoomedImage_is; |
2 | |
3 | static ImageSurface quickShowZoomedImage(final RGBImage image) { |
4 | ret quickShowZoomedImage(image, 2.0); |
5 | } |
6 | |
7 | ifclass BWImage |
8 | static ImageSurface quickShowZoomedImage(final BWImage image) { |
9 | ret quickShowZoomedImage(image.getBufferedImage()); |
10 | } |
11 | endif |
12 | |
13 | static ImageSurface quickShowZoomedImage(final RGBImage image, final double zoom) { |
14 | ret quickShowZoomedImage(image.getBufferedImage(), zoom); |
15 | } |
16 | |
17 | static ImageSurface quickShowZoomedImage(final BufferedImage image) { |
18 | ret quickShowZoomedImage(image, 2.0); |
19 | } |
20 | |
21 | static ImageSurface quickShowZoomedImage(S title, final BufferedImage image, final double zoom) { |
22 | ImageSurface is = quickShowZoomedImage(image, zoom); |
23 | setFrameTitle(is, title); |
24 | ret is; |
25 | } |
26 | |
27 | static ImageSurface quickShowZoomedImage(final BufferedImage image, final double zoom) { |
28 | ret (ImageSurface) swingAndWait(func { |
29 | quickShowZoomedImage_is = showImage(image, quickShowZoomedImage_is); |
30 | showFrame(getFrame(quickShowZoomedImage_is)); |
31 | if (quickShowZoomedImage_is.zoomX != zoom || quickShowZoomedImage_is.zoomY != zoom) { |
32 | quickShowZoomedImage_is.setZoom(zoom); |
33 | packFrameInTopRightCorner(quickShowZoomedImage_is); |
34 | } |
35 | ret quickShowZoomedImage_is; |
36 | }); |
37 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005387 |
Snippet name: | quickShowZoomedImage - show an image in always the same frame, zoomed 2.0 |
Eternal ID of this version: | #1005387/5 |
Text MD5: | b67583ff075f605f3fae46ebd3582b15 |
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 18:42:35 |
Source code size: | 1279 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 706 / 755 |
Version history: | 4 change(s) |
Referenced in: | [show references] |