如何使用Picturebox中的鼠标移动图像 [英] How to Image move using Mouse inside Picturebox

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

问题描述

如何使用鼠标在图片框内移动图像。

解决方案

我不知道为什么 PictureBox 困惑对很多人来说它根本无法解决交互式,动画或动态图像的任何问题,但只会带来额外的麻烦,只能使用额外的资源,尤其是你的工作时间,不会给予任何回报。



请查看我过去的答案:

在图片框中附加图片 [ ^ ],

在C#中绘制一个矩形 [ ^ ],

如何从旧图纸中清除面板 [ ^ ]。



而是使用一些自定义控件,甚至是 Panel 。我会告诉你到底要做什么。请查看我过去的答案:

什么样的俏皮方法是Paint? (DataGridViewImageCell.Paint(...)) [ ^ ],

如何加速我的vb.net应用程序? [ ^ ],

在面板上捕获图纸 [ ^ ],

mdi子窗体之间的绘制线 [ ^ ]。



-SA

how to moving image using mouse inside picturebox .

解决方案

I don't know why PictureBox confused to many people. It does not help to solve any of the problems with interactive, animated or dynamic images at all, but only presents extra hassle and can only use extra resources, especially your working time, giving nothing in return.

Please see my past answers:
Append a picture within picturebox[^],
draw a rectangle in C#[^],
How do I clear a panel from old drawing[^].

Instead use some custom control or even something like Panel. I'll tell you exactly what to do. Please see my past answers:
What kind of playful method is Paint? (DataGridViewImageCell.Paint(...))[^],
How to speed up my vb.net application?[^],
capture the drawing on a panel[^],
Drawing Lines between mdi child forms[^].

—SA


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

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