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
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