Click to See Complete Forum and Search --> : StretchDiBits Problem


egarcia8484
June 12th, 2006, 03:24 PM
Hello to everyone. I'm having a problem with the StretchDiBits() function. My code just strecthes a bitmap (it makes it smaller) and then saves it into a .BMP file. The code works, but the image is pretty awfull. I just can't understand why... any ideas?
I have attached two files:
- good.bmp is a smaller goodlookin image.
- bad.bmp is a smaller ugly one.
As always thanks a lot in advance...
:wave:

GaboonViper
June 27th, 2006, 05:36 PM
Try using the SetStretchBltMode function to set the mode to HALFTONE.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6cth.asp