From: Jussi Koskela Date: Fri, 3 Jul 2020 07:02:26 +0000 (+0300) Subject: Added backwards compatible version of paintToBuffer to fix compile error X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F4336%2F1;p=simantics%2Fplatform.git Added backwards compatible version of paintToBuffer to fix compile error gitlab simantics/platform#569 Change-Id: I3c3820e8b956cec74854207827d424c649ea077a --- diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/BufferedImage.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/BufferedImage.java index 7904c3f4a..c999476ea 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/BufferedImage.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/BufferedImage.java @@ -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());