在Picturebox中平移图像 [英] Pan image inside Picturebox

查看:102
本文介绍了在Picturebox中平移图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Good Day,
我有一个允许用户操作手动加载的图像的应用程序.我面临的问题是我无法用鼠标移动图片框内的图像(即平移).缩放图像后,我希望用户在图片框内四处移动图片,从而允许他/她查看其他部分.我想在不使用滚动条的情况下向任意方向拖动图片以查看图像的其他部分.
任何建议,将不胜感激.谢谢. :confused:

Good Day ,
I have an Application that allows the user to manipulate images that are loaded manually. The problem i am facing is that i cannot move the image inside the picturebox with the mouse (ie. panning). When the image is zoomed I would like the user to move the picture around inside the picture box , hence allowing him/her to view other parts. I''d like to drag picture in any direction to see the other part of the image without using scrollbars.
Any suggestions would be appreciated. Thanks. :confused:

推荐答案

[< ^ ]和 ^ ] CodeProject 文章可能对您有用. :)
This[^] and this[^] CodeProject articles might be useful for you. :)


您可以查看 ^ ]和
you can take look there-Link1[^] and there-Link2[^] having like same question with perfect solution.


谢谢大家...这些链接非常有用:thumbsup:
thanks guys... those links were very useful:thumbsup:


这篇关于在Picturebox中平移图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆