[DUG] Handling Jpgs
Conor Boyd
Conor.Boyd at trimble.co.nz
Tue Jul 11 09:58:13 NZST 2006
Neven,
I was looking for something similar recently (although I was saving the
end result as a bmp), and couldn't find anything, so rolled my own.
Involved working out the scaling factor to maintain the aspect ratio and
then using StretchDraw to paint to the Canvas of my Bitmap.
Don't know if you could create a descendant of TJPEG, expose the Bitmap
property and draw to that as required?
Let me know if some sample code for resizing and StretchDraw-ing to a
canvas is any help...
If you find anything else, I'd be interested to hear about it.
I looked at ImageMagick, but wanted everything to be compiled into my
exe.
Cheers,
Conor
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Neven MacEwan
Can anyone recommend a free library for resizing jpgs without converting
them to bmps
More information about the Delphi
mailing list