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 <[EMAIL PROTECTED]>:
>
> I'm waiting with impatience for the next release !
>
> 2007/10/2, Christophe Charles <[EMAIL PROTECTED]>:
> >
> > Hi Yegor !
> >
> > I want to thank you for your big availability !
> >
> > Best regards !
> >
> > Chris
> >
> >
> >
> > 2007/10/1, Yegor Kozlov < [EMAIL PROTECTED] >:
> > >
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>

Reply via email to