bitmap zooming
-
hi, I want to zoom in and zoom out a bitmap. how can i do this any sample ,, or help. thanx
-
hi, I want to zoom in and zoom out a bitmap. how can i do this any sample ,, or help. thanx
http://www.codeproject.com/miscctrl/wndimg.asp[^] The referenced article uses
StretchBlt()
to scale the image.
[
](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
-
http://www.codeproject.com/miscctrl/wndimg.asp[^] The referenced article uses
StretchBlt()
to scale the image.
[
](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Hi , thanx for guiding me . But i m not getting any clue from this. I only want to zoom it ,,ur sample application is doing many things i m confused with this waitng for more prompt answer thanx
-
Hi , thanx for guiding me . But i m not getting any clue from this. I only want to zoom it ,,ur sample application is doing many things i m confused with this waitng for more prompt answer thanx
If you want to zoom a bitmap, that is the same as stretching it. So use the StretchBlt() function. By specifying the destination coordinates to be larger than the source coordinates you will get the effect of zooming in. By making the destination coordinates smaller than the source coordinates you get the effect of zooming out. Look up
StretchBlt()
(orCDC::StretchBlt()
) in MSDN for more information.
[
](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!