Re: [fpc-pascal] bug fpc-image

2012-07-08 Thread tazio mirandola
this method is working. thanks On Sat, Jul 7, 2012 at 9:43 PM, Bernd wrote: > 2012/7/7 tazio mirandola > >> hi all, >> >> i'm trying to resize a jpg via fpc-image, this is the relevant >> code(adapted from http://wiki.freepascal.org/fcl-image): >> >> > > for resizing you should use StretchDra

Re: [fpc-pascal] bug fpc-image

2012-07-07 Thread Bernd
2012/7/7 tazio mirandola > hi all, > > i'm trying to resize a jpg via fpc-image, this is the relevant > code(adapted from http://wiki.freepascal.org/fcl-image): > > for resizing you should use StretchDraw() from the TCanvas object: ImageOriginal := TFPMemoryImage.Create(0, 0); Imag

Re: [fpc-pascal] bug fpc-image

2012-07-07 Thread Mattias Gaertner
On Sat, 7 Jul 2012 14:40:14 +0200 tazio mirandola wrote: > hi all, > > i'm trying to resize a jpg via fpc-image, this is the relevant code(adapted > from http://wiki.freepascal.org/fcl-image): > > > uses > fpimage, fpcanvas, FPImgCanv, fpreadjpeg,fpwritejpeg; > > procedure TImgResize.Resam