Uses 108K of libraries. Click here for Pure Java version (9306L/66K).
1 | static ImageSurface showZoomedImage(final RGBImage image) { |
2 | ret showZoomedImage(image, 2); |
3 | } |
4 | |
5 | static ImageSurface showZoomedImage(S title, RGBImage image) { |
6 | ret showZoomedImage(title, image, 2); |
7 | } |
8 | |
9 | static ImageSurface showZoomedImage(S title, BufferedImage image) { |
10 | ret showZoomedImage(title, image, 2); |
11 | } |
12 | |
13 | static ImageSurface showZoomedImage(S title, RGBImage image, double zoom) { |
14 | ret setFrameTitle(showZoomedImage(image, zoom), title); |
15 | } |
16 | |
17 | static ImageSurface showZoomedImage(S title, BufferedImage image, double zoom) { |
18 | ret setFrameTitle(showZoomedImage(image, zoom), title); |
19 | } |
20 | |
21 | static ImageSurface showZoomedImage(RGBImage image, double zoom) { |
22 | ret showZoomedImage(image.getBufferedImage(), zoom); |
23 | } |
24 | |
25 | static ImageSurface showZoomedImage(BufferedImage image) { |
26 | ret showZoomedImage(image, 2); |
27 | } |
28 | |
29 | static ImageSurface showZoomedImage(double zoom, MakesBufferedImage image) { |
30 | ret showZoomedImage(toBufferedImage(image), zoom); |
31 | } |
32 | |
33 | static ImageSurface showZoomedImage(double zoom, BufferedImage image) { |
34 | ret showZoomedImage(image, zoom); |
35 | } |
36 | |
37 | static ImageSurface showZoomedImage(BufferedImage image, double zoom) { |
38 | ret (ImageSurface) swingAndWait(func { |
39 | ImageSurface is = showImage(image); |
40 | is.setZoom(zoom); |
41 | packFrame(is); |
42 | ret is; |
43 | }); |
44 | } |
45 | |
46 | ifclass BWImage |
47 | static ImageSurface showZoomedImage(BWImage image) { |
48 | ret showZoomedImage(image.getBufferedImage()); |
49 | } |
50 | |
51 | static ImageSurface showZoomedImage(BWImage image, double zoom) { |
52 | ret showZoomedImage(image.getBufferedImage(), zoom); |
53 | } |
54 | endif |
55 | |
56 | static ImageSurface showZoomedImage(RGBImage img, ImageSurface surface) { |
57 | if (surface == null) |
58 | ret showZoomedImage(img); |
59 | else { |
60 | surface.setImage(img); |
61 | ret surface; |
62 | } |
63 | } |
64 | |
65 | static ImageSurface showZoomedImage(ImageSurface surface, BufferedImage img, S title) { |
66 | ret setFrameTitle(showZoomedImage(img, surface), title); |
67 | } |
68 | |
69 | static ImageSurface showZoomedImage(ImageSurface surface, RGBImage img, S title) { |
70 | ret setFrameTitle(showZoomedImage(img, surface), title); |
71 | } |
72 | |
73 | static ImageSurface showZoomedImage(ImageSurface surface, S title, RGBImage img) { |
74 | ret showZoomedImage(surface, img, title); |
75 | } |
76 | |
77 | static ImageSurface showZoomedImage(ImageSurface surface, S title, MakesBufferedImage img) { |
78 | ret showZoomedImage(surface, img.getBufferedImage(), title); |
79 | } |
80 | |
81 | static ImageSurface showZoomedImage(BufferedImage img, ImageSurface surface) { |
82 | if (surface == null) |
83 | ret showZoomedImage(img); |
84 | else { |
85 | surface.setImage(img); |
86 | ret surface; |
87 | } |
88 | } |
Began life as a copy of #1005387
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: | #1005704 |
Snippet name: | showZoomedImage - show an image zoomed (default zoom is 2) |
Eternal ID of this version: | #1005704/15 |
Text MD5: | e937563183548320f13debdaa2776c00 |
Transpilation MD5: | cb56b89682c9f5dc299bdfbaeba4c628 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-24 18:39:05 |
Source code size: | 2584 bytes / 88 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 546 / 629 |
Version history: | 14 change(s) |
Referenced in: | [show references] |