如何使彩色图像,以黑色和白色的Andr​​oid [英] how to make the color image to black and white in Android

查看:105
本文介绍了如何使彩色图像,以黑色和白色的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.

这篇关于如何使彩色图像,以黑色和白色的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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