static ImageSurface quickShowZoomedImage_is; static ImageSurface quickShowZoomedImage(final RGBImage image) { ret quickShowZoomedImage(image, 2.0); } ifclass BWImage static ImageSurface quickShowZoomedImage(final BWImage image) { ret quickShowZoomedImage(image.getBufferedImage()); } endif static ImageSurface quickShowZoomedImage(final RGBImage image, final double zoom) { ret quickShowZoomedImage(image.getBufferedImage(), zoom); } static ImageSurface quickShowZoomedImage(final BufferedImage image) { ret quickShowZoomedImage(image, 2.0); } static ImageSurface quickShowZoomedImage(S title, final BufferedImage image, final double zoom) { ImageSurface is = quickShowZoomedImage(image, zoom); setFrameTitle(is, title); ret is; } static ImageSurface quickShowZoomedImage(final BufferedImage image, final double zoom) { ret (ImageSurface) swingAndWait(func { quickShowZoomedImage_is = showImage(image, quickShowZoomedImage_is); showFrame(getFrame(quickShowZoomedImage_is)); if (quickShowZoomedImage_is.zoomX != zoom || quickShowZoomedImage_is.zoomY != zoom) { quickShowZoomedImage_is.setZoom(zoom); packFrameInTopRightCorner(quickShowZoomedImage_is); } ret quickShowZoomedImage_is; }); }