Problem with the PictureBox Control: Please Help
-
Hi, Can someone please tell me how can I zoom in and out of an image that is displayed in a picture box control??? Please Help... Thanks, E.A.
You can't. So many people seem to think a picture box control should be a full featured image viewer, and it's not. It's for showing a picture. If you want to do anything more, you'll have to write the code yourself. I prefer to put a panel on my form and use it to work out the bounds to draw my own images for this very reason, it means I have full control. The Graphics.DrawImage method has a number of overloads, and all are designed to be able to zoom into an area of an image and/or draw only part of the image. Christian Graus - Microsoft MVP - C++
-
Hi, Can someone please tell me how can I zoom in and out of an image that is displayed in a picture box control??? Please Help... Thanks, E.A.
Yup, ehat Christian said. Or you can use the search function of Codeproject ;): PictureBox with zooming and scrolling[^]. Pompiedompiedom... ;)
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick