poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Charles" <chrcharle...@gmail.com>
Subject Re: [HSSF announce] Resizing images is implemented
Date Tue, 02 Oct 2007 06:57:32 GMT
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
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message