Uses 108K of libraries. Click here for Pure Java version (9306L/66K).
static ImageSurface showZoomedImage(final RGBImage image) { ret showZoomedImage(image, 2); } static ImageSurface showZoomedImage(S title, RGBImage image) { ret showZoomedImage(title, image, 2); } static ImageSurface showZoomedImage(S title, BufferedImage image) { ret showZoomedImage(title, image, 2); } static ImageSurface showZoomedImage(S title, RGBImage image, double zoom) { ret setFrameTitle(showZoomedImage(image, zoom), title); } static ImageSurface showZoomedImage(S title, BufferedImage image, double zoom) { ret setFrameTitle(showZoomedImage(image, zoom), title); } static ImageSurface showZoomedImage(RGBImage image, double zoom) { ret showZoomedImage(image.getBufferedImage(), zoom); } static ImageSurface showZoomedImage(BufferedImage image) { ret showZoomedImage(image, 2); } static ImageSurface showZoomedImage(double zoom, MakesBufferedImage image) { ret showZoomedImage(toBufferedImage(image), zoom); } static ImageSurface showZoomedImage(double zoom, BufferedImage image) { ret showZoomedImage(image, zoom); } static ImageSurface showZoomedImage(BufferedImage image, double zoom) { ret (ImageSurface) swingAndWait(func { ImageSurface is = showImage(image); is.setZoom(zoom); packFrame(is); ret is; }); } ifclass BWImage static ImageSurface showZoomedImage(BWImage image) { ret showZoomedImage(image.getBufferedImage()); } static ImageSurface showZoomedImage(BWImage image, double zoom) { ret showZoomedImage(image.getBufferedImage(), zoom); } endif static ImageSurface showZoomedImage(RGBImage img, ImageSurface surface) { if (surface == null) ret showZoomedImage(img); else { surface.setImage(img); ret surface; } } static ImageSurface showZoomedImage(ImageSurface surface, BufferedImage img, S title) { ret setFrameTitle(showZoomedImage(img, surface), title); } static ImageSurface showZoomedImage(ImageSurface surface, RGBImage img, S title) { ret setFrameTitle(showZoomedImage(img, surface), title); } static ImageSurface showZoomedImage(ImageSurface surface, S title, RGBImage img) { ret showZoomedImage(surface, img, title); } static ImageSurface showZoomedImage(ImageSurface surface, S title, MakesBufferedImage img) { ret showZoomedImage(surface, img.getBufferedImage(), title); } static ImageSurface showZoomedImage(BufferedImage img, ImageSurface surface) { if (surface == null) ret showZoomedImage(img); else { surface.setImage(img); ret surface; } }
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: | 544 / 625 |
Version history: | 14 change(s) |
Referenced in: | [show references] |