Zoom in and Zoom out feature in a picturebox
-
Hi there, I am using VS2012 and .NET Framework 4.5 I am making a simple picture viewer. I have completed, Creating a picture viewer, which has open, previous, and next buttons. Now i was wondering how i can add in the Zoom feature into this. What i exactly want is, according to mouse wheel movement the picture should zoom in or out corresponding to direction of rotation of the mouse wheel. Also the image should zoom in or out based on the point where the mouse pointer is currently present. One more thing, the picture viewer is fullscreen at all time. I hope somebody could reply soon... Thank you
-
Hi there, I am using VS2012 and .NET Framework 4.5 I am making a simple picture viewer. I have completed, Creating a picture viewer, which has open, previous, and next buttons. Now i was wondering how i can add in the Zoom feature into this. What i exactly want is, according to mouse wheel movement the picture should zoom in or out corresponding to direction of rotation of the mouse wheel. Also the image should zoom in or out based on the point where the mouse pointer is currently present. One more thing, the picture viewer is fullscreen at all time. I hope somebody could reply soon... Thank you
-
Hi there, I am using VS2012 and .NET Framework 4.5 I am making a simple picture viewer. I have completed, Creating a picture viewer, which has open, previous, and next buttons. Now i was wondering how i can add in the Zoom feature into this. What i exactly want is, according to mouse wheel movement the picture should zoom in or out corresponding to direction of rotation of the mouse wheel. Also the image should zoom in or out based on the point where the mouse pointer is currently present. One more thing, the picture viewer is fullscreen at all time. I hope somebody could reply soon... Thank you
-
Hi there, I am using VS2012 and .NET Framework 4.5 I am making a simple picture viewer. I have completed, Creating a picture viewer, which has open, previous, and next buttons. Now i was wondering how i can add in the Zoom feature into this. What i exactly want is, according to mouse wheel movement the picture should zoom in or out corresponding to direction of rotation of the mouse wheel. Also the image should zoom in or out based on the point where the mouse pointer is currently present. One more thing, the picture viewer is fullscreen at all time. I hope somebody could reply soon... Thank you
Apart from the links provided you can check this how-to-zoom-in-and-zoom-out-a-image-in-picturebox-using-mouse-wheels-in-c[^]
-
Hi there, I am using VS2012 and .NET Framework 4.5 I am making a simple picture viewer. I have completed, Creating a picture viewer, which has open, previous, and next buttons. Now i was wondering how i can add in the Zoom feature into this. What i exactly want is, according to mouse wheel movement the picture should zoom in or out corresponding to direction of rotation of the mouse wheel. Also the image should zoom in or out based on the point where the mouse pointer is currently present. One more thing, the picture viewer is fullscreen at all time. I hope somebody could reply soon... Thank you
CodeProject is your friend: [^], [^]. For an old (but still relevant, imho) caution against using the PictureBox to pan and zoom: [^].
If you seek to aid everyone that suffers in the galaxy, you will only weaken yourself … and weaken them. It is the internal struggles, when fought and won on their own, that yield the strongest rewards… If you care for others, then dispense with pity and sacrifice and recognize the value in letting them fight their own battles." Darth Traya