static ImageSurface zoomedImageSurface(final BufferedImage image, final double zoom) { ret swing(func -> ImageSurface { ImageSurface is = new(image); is.setZoom(zoom); ret is; }); } static ImageSurface zoomedImageSurface(double zoom, BufferedImage image) { ret zoomedImageSurface(image, zoom); }