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=6b77a3b8267221adc96315a8f84b99296a7ffeda;p=simantics%2Fplatform.git Added backwards compatible version of paintToBuffer to fix compile error gitlab simantics/platform#569 Change-Id: I3c3820e8b956cec74854207827d424c649ea077a (cherry picked from commit e103dac49ed74624ca9443a2b795871654ba307f) --- 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());