diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java b/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java index 9141806b8..66038ec1e 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java +++ b/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java @@ -147,7 +147,7 @@ public class Picture extends SimpleShape { if(img != null) { // Valid image, set anchor from it - setAnchor(new java.awt.Rectangle(0, 0, img.getWidth(), img.getHeight())); + setAnchor(new java.awt.Rectangle(0, 0, img.getWidth()*POINT_DPI/PIXEL_DPI, img.getHeight()*POINT_DPI/PIXEL_DPI)); } else { // Invalid image, go with the default metafile size setAnchor(new java.awt.Rectangle(0, 0, 200, 200));