本文介绍了如何使彩色图像,以黑色和白色的Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道的彩色图像(这我是从网上下载),以黑色和白色的转换,当我展示它在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.
谢谢
拉克什曼
ThanksLakshman
推荐答案
这应该可以帮助您。检查第二个答案。
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.
这篇关于如何使彩色图像,以黑色和白色的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!