T
TC
Hi folks
Sorry if this is OT, but I got no joy in
microsoft.public.win32.programmer/gdi.
(1) I'm encoding to standard (built-in) formats: JPEG, BMP, GIF etc. I
currently have the encoder CLSIDs hardcoded. Is that safe, or should I
iterate the encoders at runtime, looking for ones with the relevant
MIME types?
(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
Sorry if this is OT, but I got no joy in
microsoft.public.win32.programmer/gdi.
(1) I'm encoding to standard (built-in) formats: JPEG, BMP, GIF etc. I
currently have the encoder CLSIDs hardcoded. Is that safe, or should I
iterate the encoders at runtime, looking for ones with the relevant
MIME types?
(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