Color.colorToHSV bug

by Keith Wiley » Wed, 01 Apr 2009 07:44:45 GMT


Sponsored Links
 I believe there is a bug in Android's implementation of
Color.colorToHSV().  If you pass it fully desaturated color, it
assigns all three HSV components to the same value, that value being
the "value" component of the color.  While hue is arguably arbitrary
in such an instance could be assigned any value at random, saturation
should unambiguously be assigned zero in such a case...at least,
that's how I see it.  I have circumvented this bug in my code by
testing the individual bytes of the input color against each other to
detect desaturation, and when it occurs, explicitly overwriting the
resulting HSV color's saturation component with zero, but this bug,
assuming I'm interpreting it correctly as a bug, should be fixed.

BTW, is there an official channel to file such a bug report?  I don't
see anything jumping out at me when I explore developer.android.com,
but maybe I missed it.

--~--~---------~--~----~------------~-------~--~----~



Color.colorToHSV bug

by thesquib » Wed, 01 Apr 2009 09:03:41 GMT


 Bugs and issues can be added and tracked at 
 http://code.google.com/p/android/issues/list 




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Motorola DEFY LCD

Mau nanya neh para juragan...ane baru pegang motorola DEFY...kog kalo
dilihat LCD nya agak kuning gitu ya? dicompare ma spica n desire jadi
kelihatan beda bgt..spica ma desire LCD nya putih terang benderang
sedang DEFY agak kuning buram gitu...apakah karena pengaruh gorilla
glass yang dipake DEFY ga ya??? mungkin juragan yang punya DEFY bisa
ngasih masukan neh....thks...

-- 
===============

2. Condition compile for the Android JAVA code

Hi guys:

-- 

3. Parser avec Gson des objets de classe qui extends OverlayItem

4. Repost Update Harga : WTS : HTC Wildfire Black (second)

5. Super cam

6. May i join the group?

7. Creating app to fetch data from internet and customizing display for mobile device