BOOL CreateStretchImage(const CImage &src, CImage &dest, int stretchWidth, int stretchHeight)
{
if (src.IsDIBSection())
{
dest.Create(stretchWidth, stretchHeight, 32);
HDC destDC = dest.GetDC();
::SetStretchBltMode(destDC, HALFTONE);
src.StretchBlt(destDC, 0, 0, stretchWidth, stretchHeight);
dest.ReleaseDC();
return TRUE;
}
return FALSE;
}