Hi folks

Hope this isn't OT here. I got no joy in
microsoft.public.win32.programmer.gdi.


(1) I'm using GDI+ to save an image in various standard (built-in)
formats: JPEG, GIF, BMP etc. I currently have the encoder CLSIDs
hardcoded. Is that safe, or should I iterate the encoders at runtime,
looking for one with the relevant MIME type?


(2) I'm using GdipGetImageThumbnail() to resample images smaller *or
larger*. I've tried altering the interpolation mode to see if that
makes any difference. It doesn't seem to. Here's what I'm doing:

GdipGetImageGraphicsContext lOldBitmap, graphics
GdipSetInterpolationMode graphics, <mode>
GdipGetImageThumbnail lOldBitmap, W, H, lNewBitmap


- Is GdipGetImageThumbnail() appropriate for resampling images larger,
or is there a better way?


- Should it use the interpolation mode that I have tried to set above?


- Why does changing the interpolation mode, require a graphics context?
Resampling is just a mathematical operation on the bitmap content. What
does the graphics context contribute?


TIA,
TC