poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yegor Kozlov <ye...@dinom.ru>
Subject Re[2]: [HSSF announce] Resizing images is implemented
Date Mon, 15 Oct 2007 11:54:54 GMT
I've updated the javadocs.
Remember, to use HSSFPicture.resize() you need to download the latest build of POI from
http://encore.torchbox.com/poi-svn-build/ (or build POI from SVN sources)

Regards,
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 <chrcharles67@gmail.com>:
>>
>> I'm waiting with impatience for the next release !
>>
>> 2007/10/2, Christophe Charles <chrcharles67@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


Mime
View raw message