Board index » Visual Studio » Resize the Bitmap problem

Resize the Bitmap problem

Visual Studio193
I want to display a resized picture to the window with the StretchBlt

functions from the Mem DC to device dc.

I find if the output picture is very small than the original one, there will

be a lot of black dots and strips on the picture.

Does windows api have a better function to do the resizing?


-
 

Re:Resize the Bitmap problem

"Kimi" <kimi@intervideo.com.cn>wrote in message

Quote
I want to display a resized picture to the window with the StretchBlt

functions from the Mem DC to device dc.

I find if the output picture is very small than the original one,

there will be a lot of black dots and strips on the picture.

Does windows api have a better function to do the resizing?



See SetStretchBltMode. Experiment with different modes, see which one

gives you the best result.

--

With best wishes,

Igor Tandetnik



With sufficient thrust, pigs fly just fine. However, this is not

necessarily a good idea. It is hard to be sure where they are going to

land, and it could be dangerous sitting under them as they fly

overhead. -- RFC 1925





-