How to zoom in a Picturebox with scrollwheel in vb.net

后端 未结 3 1912
挽巷
挽巷 2020-12-16 03:19

I\'m using a set of graphics overlays to draw an image inside a picturebox control using the graphics object. I have placed the Picturebox inside a Panel and set the Panel t

3条回答
  •  没有蜡笔的小新
    2020-12-16 03:57

    basically, you need an image viewer. I used this before: http://cyotek.com/blog/creating-a-scrollable-and-zoomable-image-viewer-in-csharp-part-4

    it works great. however, it is an user control.

    for picturebox, you need create graphics from the image, and then interpolation it. here is an example: http://www.dotnetcurry.com/ShowArticle.aspx?ID=196

    I did not check this one, but looks like will work.

提交回复
热议问题