wolfofthenorth
Feb 19th, 2001, 11:37 AM
Hi all,
How do you scale a bitmap without using a picture box or image control? Is it done with StretchBlt or SetViewportExtEx?
I have tried stretchblt and am having a problem... if the source and destination DCs have different width & height settings it is blank (even if it is off by one). If the settings are the exactly the same it works, but wont stretch.
Ex. if these were in the appropriate areas of stretchblt it is blank for me.
lwidth +1, lheight + 1,,, lwidth, lheight
So i have two questions.
1. does anyone have an idea about what is going on with my stretchblt?
2. What is the best way to scale a bitmap without the help of a control?
Thanks for any help you can give.
wolf
How do you scale a bitmap without using a picture box or image control? Is it done with StretchBlt or SetViewportExtEx?
I have tried stretchblt and am having a problem... if the source and destination DCs have different width & height settings it is blank (even if it is off by one). If the settings are the exactly the same it works, but wont stretch.
Ex. if these were in the appropriate areas of stretchblt it is blank for me.
lwidth +1, lheight + 1,,, lwidth, lheight
So i have two questions.
1. does anyone have an idea about what is going on with my stretchblt?
2. What is the best way to scale a bitmap without the help of a control?
Thanks for any help you can give.
wolf