rossryan
asked on
Resizing Image -> Zoom for an ImageBox
Hello,
I am looking for some code that allows me to zoom in and out on an image contained within an imagebox control. I've looked around, and some of the stuff out there is rather memory intensive (resizing the actual image). Any ideas?
Thanks,
Ryan
I am looking for some code that allows me to zoom in and out on an image contained within an imagebox control. I've looked around, and some of the stuff out there is rather memory intensive (resizing the actual image). Any ideas?
Thanks,
Ryan
ASKER
Fair enough. Then what code do you think would do this proper? What I mean to say is thus: the code I'm using, when resizing a bitmap tends to eat memory. Is there any method out there that upon resizing the image a few times will not eat memory. I ask because programs like Paint Shop Pro do not seem to suffer from these issues.
Thanks,
Ryan
Thanks,
Ryan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
With the SizeMode property you can set different values.
'Zoom' for example to make the image fill out the box (keeping ratio of the image).
PictureBox always resizes to the bounds of your control. Custom zoom factors are not possible. If you want that you have to resize the image by yourself.