You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "david.di" <xu...@dlpct.com> on 2010/12/14 09:23:03 UTC

How to set the image's size?

Hi, gays, I create a image in the excel file. How to set the JPG file size to
fit the grid of excel.
Blow is my code. I use the ClientAnchor  to set the size of picture. But it
didn't work.

 ClientAnchor anchor = helper.createClientAnchor();
 anchor.setDx1(0);
 anchor.setDy1(0);
 anchor.setDx2(233);
 anchor.setDy2(255);
 anchor.setCol1(8);
 anchor.setRow1(1);
 anchor.setCol2(8);
 anchor.setRow2(5);


Very Thanks.
-- 
View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-set-the-image-s-size-tp3304204p3304204.html
Sent from the POI - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org