Actually this version would be better:
0.2989 * R + 0.5870 * G + 0.1140 * B
(it's taken from MatLab's rgb2gray:)
It gives higher weight to green because of human's eye
characteristics.

On 10 Kwi, 13:32, Chandan <[EMAIL PROTECTED]> wrote:
> Intensity = ( R + G + B ) / 3
>
> On Apr 10, 4:02 pm, Mi <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm wondering if it is possible to get  the gray color representing a
> > specified color? Or can I in some way calculate it from the red, green
> > and blue component in a color?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to