You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Tobias Meissner <to...@gmail.com> on 2012/04/20 17:44:40 UTC
Re: Issue concerning setanchor usage for poi hslf
Unfortunately this leads to an error:
org.apache.poi.hslf.model.Picture.getPictureData(Picture.java:176)
org.apache.poi.hslf.model.Picture.setDefaultSize(Picture.java:148)
Here is my code:
byte[] img = (byte[]) pictureObject;
ByteArrayInputStream bais = new ByteArrayInputStream(img);
int picID = ppt.addPicture(img, Picture.PNG);
Picture p01 = new Picture(picID);
p01.setAnchor(setBoundings(20, 20,50,50));
p01.setDefaultSize();
slide.addShape(p01);
I just don't get the clue...
kind regards
Tobias
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Issue-concerning-setanchor-usage-for-poi-hslf-tp4582742p5654575.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Issue concerning setanchor usage for poi hslf
Posted by Tobias Meissner <to...@gmail.com>.
solved!
The problem is, that the call to setDefaultSize() produces an error in POI.
I just transferred the code of this method to my code, and now it works!!!
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Issue-concerning-setanchor-usage-for-poi-hslf-tp4582742p5658564.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org