static ImageSurface quickShowZoomedImage_is; static bool quickShowZoomedImage_firstTime = true; static ImageSurface quickShowZoomedImage(final RGBImage image) { ret quickShowZoomedImage(image, 2.0); } 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); if (quickShowZoomedImage_firstTime) { quickShowZoomedImage_is.setZoom(zoom); packFrame(quickShowZoomedImage_is); quickShowZoomedImage_firstTime = false; } ret quickShowZoomedImage_is; }); }