Android Canvas 橡皮擦/橡皮
谁能告诉我如何擦除画布上完成的颜色..即,我在画布上有一个彩色图像,它是通过在画布上绘制白色而制成的黑白图像,现在它似乎是一个草图 仅限图像,可以与其他黑白图像类似地绘制。现在的问题是,我的应用程序有一个选项,仅用鼠标(手指)的笔触填充图像的原始颜色,根据我的说法,如果我可以擦除白色(或在原始图像上方完成的任何颜色),那么我将实现所需的选项.. 任何帮助... 如果有的话,请建议我任何其他方法来实现这一目标......
谢谢,,,
Can any one tell me how to erase the color done on a canvas..i.e., I hv a colorful image on canvas that has been made B/W by drawing white color all over the canvas now it appeared to be a sketched image only which can be painted similarly as other B/W image. Now the question is that My application has one option to fill the image with its original color with stroke of mouse(finger) only, According to me if i can erase the white color(or any of its color done above the original image) then i 'll achieve the required option..
Any help...
Please suggest me any other way to achieve this also, if there is.....
Thanks,,,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过使用 porterduff 和 xfermode 在 android 中创建一个名为 Masking 的 photo-shop 功能(或 alpha masking 或 image masking),这将是可能的。
It would be possible by creating a photo-shop functionality named Masking(or alpha masking or image masking) in android using porterduff and xfermode.