]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Added backwards compatible version of paintToBuffer to fix compile error
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 3 Jul 2020 07:02:26 +0000 (10:02 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 17 Aug 2020 20:12:30 +0000 (23:12 +0300)
gitlab simantics/platform#569

Change-Id: I3c3820e8b956cec74854207827d424c649ea077a
(cherry picked from commit e103dac49ed74624ca9443a2b795871654ba307f)

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());