在绘图程序中需要somr想法(Winform c#) [英] Need somr ideas in paint program (Winform c#)

查看:110
本文介绍了在绘图程序中需要somr想法(Winform c#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我创建了一个简单的绘图程序,允许用户绘制线条和形状。



但是我怎么能添加这个功能才能使用油漆桶?



任何建议,概念或任何想法都会受到赞赏..

Hello

I have created a simple paint program that allows user to draw lines and shapes.

But how can i add the feature to use a "paint bucket" ?

Any suggestions,concepts or any kind of ideas would be appreciated..

推荐答案

您需要一个按钮或其他控件来选择存储桶。然后看看Cursors,不知道如何制作自己的光标图像,但应该有在线示例。

选择存储桶时,需要一个事件处理程序来跟踪鼠标点击事件以获取光标X,Y坐标并确定该点在图纸的哪个区域。
You will need a button or other control to select the bucket. Then look at Cursors, don't know how to make own cursor image but there should be examples on-line.
When bucket is chosen, you need an event handler to track mouse click events to get cursor X,Y coordinates and determine in what region of the drawing the point is in.


这篇关于在绘图程序中需要somr想法(Winform c#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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