Hi everybody,
I want to resize an image if the width is greater than 1000 pix and if it is i want to resize it. I'm using fileupload and loading the file to an imagecontrol and then i'm checking if the width is greater than 1000 pix, so far so good but i can't seem to find a resize function for the imagecontrol? Code below shows want i'm trying to do
imgtest.LoadFromStream(AStream);
if imgtest.Picture.Width > 1000 then begin
// ShowMessage('bigger than 1000');
I want to change the size before i save it to destName
imgtest.Picture.SaveToFile(destName);
end;