Hi, It's a bug. Before setting coordinates for a picture we need to convert from pixels (96 dpi) to points (72 dpi). Missing this results in the 1.33 factor.
I will upload the fix today. Thanks for the report. Regards, Yegor HN> Hi HN> I'm adding a picture to new slideshow and it always seems to be scaling HN> it to 133% of actual size. The picture is in the OutputStream os. HN> int i = ss.addPicture(os.toByteArray(),Picture.PNG); HN> Picture p = new Picture(i); HN> s = ss.createSlide(); HN> s.setSlideNumber(ss.getSlides().length); HN> s.addShape(p); HN> I've tried using the setDefaultSize() method on Picture and the HN> setAnchor method of Picture to adjust sizing and positioning without HN> success. HN> Presumably I'm missing something very simple! Can someone point me in HN> the right direction to set the picture size to the actual picture size HN> (i.e. no scaling). HN> Nick Havard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
