Hi!
i load a bmp into a dialog, shrink it, then save the shrinked img to disk. But the saved bmp looks weird. The colors look unusual. Howto fix this?
Thanks for any help.
Printable View
Hi!
i load a bmp into a dialog, shrink it, then save the shrinked img to disk. But the saved bmp looks weird. The colors look unusual. Howto fix this?
Thanks for any help.
What method are you using for the shrinking and what ROP option do you use?
--
Mats
i just use StretchBlt() to shrink the image in the dlg. Then i just save the shrinked image back to disk as a bmp.
i have attached a normal image and it's shrinked version (origionaly bmp files converted to jpgs).
How to fix the shrinked one's poor quality problem?
Yes, I was slightly off track, you need to use SetStretchBltMode() to HALFTONE
see: http://msdn2.microsoft.com/en-us/library/ms532322.aspx
This works fine in an application I've written to draw pictures on screen.
--
Mats
Thx.
and thx again, I have a similar issue with this in an application, but had put it on the back burner :)