import java.awt.geom.AffineTransform; svoid zoomGraphics(Graphics2D g, double scaleX, double scaleY default scaleX) { AffineTransform at = g.getTransform(); at.scale(scaleX, scaleY); g.setTransform(at); }