Hi there,
I have tried using GetThumbnailImage to create thumbnails for uploading on
the internet.
However, quality of such thumbnails is quite poor while file size is quite
large (this is about jpg's).
Is there a way to set a quality and compression level for jpg's, or if not,
does anyone know a good control for it?
I would advise not using GetThumbnailImage at all, as the image quality is
allways crap. I have even had it producing unexpected results at times. My
suspicitions are that it uses a similar method to Shell32.dll's
IExtractImage interface which is capable of retrieving thumbnails from the
little thumbs.db files that plague almost every Windows system.
As just suggest you should create a new bitmap of the desired size and then
use DrawImage from a graphics object created from the bitmap. This way you
can set various properties of the graphics object to set the interpolation
mode, so you can have a blocky effect or a nice smooth effect.
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."
Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\