Link to home
Start Free TrialLog in
Avatar of rossryan
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
Avatar of Pacman
Pacman
Flag of Germany image

Hi rossryan,

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.
Avatar of rossryan
rossryan

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
ASKER CERTIFIED SOLUTION
Avatar of Pacman
Pacman
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial