橡皮擦/橡胶为Android帆布 [英] Eraser/rubber for Android Canvas

查看:174
本文介绍了橡皮擦/橡胶为Android帆布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何一个可以告诉我如何消除在canvas..ie做了颜色,我HV一个丰富多彩的图像上已经通过绘制白色遍布帆布制成黑/白帆布现在它似乎是一个< STRONG>勾勒图片只有这同样可以为其它/黑白图像画。现在的问题是,我的应用程序有一个选项只用鼠标(手指)的行程,其原有的颜色填充图像,据我,如果我可以抹去的白色(或任何颜色的原始图像上面做的),那么我就崩达到所需的选项..
   任何帮助...
请给我建议任何其他方式也能实现这一点,如果存在.....

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.....

谢谢,,,

推荐答案

这将有可能通过创建一个名为掩蔽的照片店铺功能(或阿尔法蒙或图像屏蔽)在Android中使用porterduff和xfermode。

It would be possible by creating a photo-shop functionality named Masking(or alpha masking or image masking) in android using porterduff and xfermode.

这篇关于橡皮擦/橡胶为Android帆布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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