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.
This is a discussion on Colors get weird when i shrink the bmp within the Windows Programming forums, part of the Platform Specific Boards category; Hi! i load a bmp into a dialog, shrink it, then save the shrinked img to disk. But the saved ...
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.
Some useless programs i've wrote : slprogrammersheaven
My amature IT Blog: http://everything-geeky.blogspot.com/
My Flash games: http://flashweed.blogspot.com/
(and, sorry for my amature english in the posts)
What method are you using for the shrinking and what ROP option do you use?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
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?
Last edited by geek@02; 10-03-2007 at 12:00 PM.
Some useless programs i've wrote : slprogrammersheaven
My amature IT Blog: http://everything-geeky.blogspot.com/
My Flash games: http://flashweed.blogspot.com/
(and, sorry for my amature english in the posts)
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Thx.
Some useless programs i've wrote : slprogrammersheaven
My amature IT Blog: http://everything-geeky.blogspot.com/
My Flash games: http://flashweed.blogspot.com/
(and, sorry for my amature english in the posts)
and thx again, I have a similar issue with this in an application, but had put it on the back burner![]()
Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.