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.
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.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)
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.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)
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.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)
and thx again, I have a similar issue with this in an application, but had put it on the back burner