I want to resize a bit picture saved in a file with the following code
CImage img;
CImage sm_img;
img.Load(FileName);
sm_img.Create(80,60,img.GetBPP(),
HDC sm_hdc = sm_img.GetDC();
img.StretchBlt(sm_hdc,0,0,80,60,SRCCOPY);
sm_img.Save(sjpgFileName);
img.Detach();
The result is bad as colors are lost. I guest we need to set som attributes for the variable
sm_img but don't know how. Can you help me, please !