如何使彩色图像,以黑色和白色的Andr​​oid

问题描述:

我想知道的彩色图像(这我是从网上下载),以黑色和白色的转换,当我展示它在Android的用户的方式。
   任何人可以在任何Android的工作发现了这个要求。请让我知道。

I wanted to know the way to convert the color image (which i am downloading from net) to black and white when i am displaying it to the user in android. can anybody found this requirement in any of your android work. Please let me know.

谢谢
拉克什曼

Thanks Lakshman

旧的讨论应该可以帮助您。检查第二个答案。

This old discussion should help you. Check the second answer.

另外,您可以直接使用href=\"http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/\" rel=\"nofollow\">灰阶算法的,因为它的操作非常简单。

Alternatively you can directly use the grayscale algorithms since it is extremely simple operation.