]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Did not compile 50/4350/1
authorAntti Villberg <antti.villberg@semantum.fi>
Wed, 29 Jul 2020 15:26:19 +0000 (18:26 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Wed, 29 Jul 2020 15:26:19 +0000 (18:26 +0300)
gitlab simantics/platform#569

Change-Id: Ib02460d0851178f50cf3d0ce910079fef2c5c4a8

bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/ScenegraphUtils.java

index 8da7d1f7f80cd6ade282e25733ec9b266d8affdc..0c08c9d4c7a7c2f302d550e3362cccfc85e7bfb1 100644 (file)
@@ -145,13 +145,13 @@ public class ScenegraphUtils {
 
        public static java.awt.image.BufferedImage paintSVG(SVGDiagram diagram, double scale) throws SVGException {
                BufferedImage bi = new BufferedImage(diagram);
-               bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), 0);
+               bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), null, 0);
                return bi.getBuffer();
        }
 
        public static java.awt.image.BufferedImage paintSVG(SVGDiagram diagram, AffineTransform transform, float margin) throws SVGException {
                BufferedImage bi = new BufferedImage(diagram);
-               bi.paintToBuffer(transform, margin);
+               bi.paintToBuffer(transform, null, margin);
                return bi.getBuffer();
        }
 
@@ -166,7 +166,7 @@ public class ScenegraphUtils {
                double xScale = (double)maxDimension / bounds.getWidth();
                double yScale = (double)maxDimension / bounds.getHeight();
                double scale = Math.min(xScale, yScale);
-               bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), 0);
+               bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), null, 0);
                return bi.getBuffer();
        }