Zooming picturebox?

bigklaxer

Member
Joined
Jul 2, 2009
Messages
6
Programming Experience
1-3
So I've been spending a good while attempting to make an application where it's possible to zoom in on a picturebox. However I haven't been able to get it working after trying everything I can think of. I'm sure there must be a simple way to do this but I've been unable to find it so if someone could help it'd be much appreciated.
 
it depends on wether you draw something onto the picturebox using gdi+ or you are just assigning an image to the picturebox. In case you use gdi+, you can use transforms (scaletransform) to scale up/down everything that is drawn afterwards. The coordinate system gets scaled, but if you use the mouse to draw something, don´t forget, that mousecoordinates stay the same, so you have to take that into account.
 
I have written a control for zooming and scrolling a picture, but i don't know how it works with drawing on it... I have a video for it so you can watch it, and if you want the program, i'll give you the download link :)

I am new on this forum, so sorry if i'm breaking any rules...
 
Back
Top