C#: Simple and functional way to zoom picturebox images with scroll bars
问题 Is there a simple and functional way to zoom an image in a picturebox including scroll bars? At the moment, I use a picture box in a panel with auto scroll activated. To zoom, I enlarge the picturebox and move it with the scroll bars on the panel. The problem is, that it behaves strange. For example: If you zoom in to far, the margin between the upper and left form border and the image get's bigger and bigger. That's the zooming method. I got it from here. private void ZoomInOut(bool zoom) {