绘图/着色应用程序 - 洪水填充算法/剪切区域
我必须开发一个着色应用程序。基本上,用户会看到一张图像。可能是字符的轮廓,用户可以使用不同的颜色填充它。我看了几个选项,但似乎找不到一个好的选项。
有人可以告诉我如何填充位图图像吗?
有我可以使用的示例代码吗?或者开源项目?
它必须在
I have to develop a coloring application. Basically the user is presented with an image. An outline of a character maybe and the user can fill it using different colors. I've looked at a few options but I can't seem to find a good one.
Could someone tell me how to fill the bitmap image.
Is there any sample code I can use? or an open source project?
It has to be done in
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
寻找一些好的 Java 图像处理库,例如此处列出的库 https://stackoverflow .com/questions/4078479/what-android-3rd-party-libraries-are-there。这不是一个Android问题,而是更多关于图像处理的问题
Look for some good Java Image processing Libraries like the ones listed here https://stackoverflow.com/questions/4078479/what-android-3rd-party-libraries-are-there . Its not an Android question but more about Image processing
有关 Flood Fill 的维基百科条目 提供了伪代码形式的经典算法、一些变体和优化,以及多种语言的源代码链接。
The Wikipedia entry on Flood Fill has the classical algorithm in pseudo-code, a few variants and optimizations and links to source code in several languages.