You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Yegor Kozlov <ye...@dinom.ru> on 2007/10/13 09:44:13 UTC

Re[2]: [HSSF announce] Resizing images is implemented

Hi,

I forgot to update the java docs. Coming soon.

Yegor

> Hi Yegor,

> I can't find the method : HSSFPicture.resize()  ?

> http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFPicture.html#method_summary

> Where cna i find it ?

> Regards !

> Chris

> 2007/10/2, Christophe Charles <ch...@gmail.com>:
>>
>> I'm waiting with impatience for the next release !
>>
>> 2007/10/2, Christophe Charles <ch...@gmail.com>:
>> >
>> > Hi Yegor !
>> >
>> > I want to thank you for your big availability !
>> >
>> > Best regards !
>> >
>> > Chris
>> >
>> >
>> >
>> > 2007/10/1, Yegor Kozlov < yegor@dinom.ru >:
>> > >
>> > > Hi All,
>> > >
>> > > The functionality to resize HSSF images to the actual width and height
>> > > was requested many times.
>> > > Finally it is implemented. HSSFPicture.resize() is a handy method to
>> > > reset a picture to its original dimensions.
>> > >
>> > > Usage:
>> > >
>> > >     HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
>> > >
>> > >     HSSFPicture picture = patriarch.createPicture(new
>> > > HSSFClientAnchor(), loadPicture( "src/resources/logos/logoKarmokar4.png", wb
>> > > ));
>> > >     picture.resize();
>> > >
>> > > or
>> > >
>> > >     HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
>> > >
>> > >     HSSFPicture picture = patriarch.createPicture(new
>> > > HSSFClientAnchor(), loadPicture( "src/resources/logos/logoKarmokar4.png", wb
>> > > ));
>> > >     HSSFClientAnchor prefferedSize = picture.getPrefferedSize();
>> > >     picture.setAnchor(prefferedSize);
>> > >
>> > >
>> > > Note: HSSFPicture.resize() works only for PNG and JPEG. Other formats
>> > > are not yet supported.
>> > >
>> > >
>> > > Regards,
>> > > Yegor Kozlov
>> > >
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>> > > For additional commands, e-mail: user-help@poi.apache.org
>> > >
>> > >
>> >
>>


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