diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2018-12-16 21:02:01 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2018-12-16 21:02:01 +0000 |
commit | 150a00654eaab6ddd58c571da73421beba01f8a3 (patch) | |
tree | 1014505d17a249ecc9265ba9b7ffe33f1a13d9a7 /src/integrationtest/org/apache/poi/stress/SlideShowHandler.java | |
parent | 8e37e0005400b3255a33721c3cd73e746c43f83e (diff) | |
download | poi-150a00654eaab6ddd58c571da73421beba01f8a3.tar.gz poi-150a00654eaab6ddd58c571da73421beba01f8a3.zip |
#62365 - SVG image support in XSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/SlideShowHandler.java')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/SlideShowHandler.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java b/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java index 20460cc2db..374afa40af 100644 --- a/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java +++ b/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java @@ -26,8 +26,9 @@ import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; +import java.lang.ref.WeakReference; -import org.apache.poi.sl.draw.DrawFactory; +import org.apache.poi.sl.draw.Drawable; import org.apache.poi.sl.usermodel.PictureData; import org.apache.poi.sl.usermodel.Shape; import org.apache.poi.sl.usermodel.ShapeContainer; @@ -111,6 +112,7 @@ public abstract class SlideShowHandler extends POIFSFileHandler { graphics.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); + graphics.setRenderingHint(Drawable.BUFFERED_IMAGE, new WeakReference<>(img)); // draw stuff s.draw(graphics); |