Zoom effect

mariano_donati

Active member
Joined
Nov 30, 2005
Messages
41
Programming Experience
Beginner
Hi, I want users to manipulate the image that they've received. I put a picturebox at center of the form, and set size mode property of it to StretchImage. So, when I modify size of picture box, I can get kind of zoom effect on this. But, when I increase "zoom" too much, picturebox's size increase its size too and it starts to cover my buttons up.
I'd like to avoid it, by kind of separating buttons area from image area, so when I increase zoom on the image, I want scrollbar to appear, so user can see the part of the image he wants without the image covering the buttons.
I hope you understand me and can help me out.
Regards!.
 
mariano,

You will probably want to dock the picture box to your form or add panels to your form to separate your buttons and your picture box. You might want to take a look at this article on MSDN: http://msdn2.microsoft.com/en-us/library/1w8z0xh4.aspx.

In my opinion your best option would be to add panels to your form and separate out your buttons and your picture. You can then doc the panels to the forms so that it automatically expands when the size of the form changes.


I don't know how much image processing you would like to do but you might want to check out an informative website in regards to image processing/GDI+ @ http://bobpowell.net.

VBNetCoder2005
 
Back
Top