From e103dac49ed74624ca9443a2b795871654ba307f Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Fri, 3 Jul 2020 10:02:26 +0300 Subject: [PATCH] Added backwards compatible version of paintToBuffer to fix compile error gitlab simantics/platform#569 Change-Id: I3c3820e8b956cec74854207827d424c649ea077a --- .../src/org/simantics/scenegraph/utils/BufferedImage.java | 4 ++++ 1 file changed, 4 insertions(+) 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()); -- 2.47.1