填充形状中的颜色 [英] Flood Fill color in a shape

查看:197
本文介绍了填充形状中的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试做类似ms paint的事情,我想实现ms paint的填充颜色功能,即我想用一种垂直的颜色填充由我绘制的填充和形状,形状可能是圆形,矩形,多边形等.欢迎提供帮助.
Manish Kumar Sharma


i am trying to do something like ms paint now i want to implement the fill color function of ms paint i.e i want to flood fill and shape drawn by me with a perticular color,shape may be anything like circle,rectangle,polygon etc.Any help is welcome.
Manish Kumar Sharma

推荐答案

这可以使用C ++ API来完成,但是C#中却奇怪地缺少了它.在代码项目上,至少有一篇关于如何在C#中进行洪水填充的文章.

C#和GDI +中的填充算法 [
This can be done with the C++ APIs, but it''s strangely missing in C#. There''s at least one article on how to do flood fill in C# right here on code project.

Flood Fill Algorithms in C# and GDI+[^]

There''s a search functionality in the site. I just typed in C# floodfill.


这篇关于填充形状中的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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