]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Added backwards compatible version of paintToBuffer to fix compile error 36/4336/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 3 Jul 2020 07:02:26 +0000 (10:02 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Fri, 3 Jul 2020 07:02:26 +0000 (10:02 +0300)
gitlab simantics/platform#569

Change-Id: I3c3820e8b956cec74854207827d424c649ea077a

bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/BufferedImage.java

index 7904c3f4ab9cf8905aecb374ebf788c14a645ac0..c999476eaaf307a8f8eb480c6b9d20b31a204076 100644 (file)
@@ -76,6 +76,10 @@ public class BufferedImage  {
         }
     }
 
+    public void paintToBuffer(AffineTransform transform, float margin) throws SVGException {
+        paintToBuffer(transform, margin);
+    }
+
     public void paintToBuffer(AffineTransform transform, ColorFilter colorFilter, float margin) throws SVGException {
 
         int w = (int)((imageBounds.getWidth()+margin*2) * transform.getScaleX());