I need to use the CIELAB colorspace in an android app. The problem is that android doesn't support java awt,which is needed to convert the colors, and I have no idea how to do this without it.
Asked
Active
Viewed 2,206 times
1
-
did you try this? http://stackoverflow.com/a/5021831/1778834 – yashhy Oct 01 '14 at 13:34
-
Yes, but this method uses awt and android has no support for awt – user3517658 Oct 01 '14 at 13:36
-
I found a conversion routine on the german wikipedia-article: http://de.wikipedia.org/wiki/Lab-Farbraum The image http://upload.wikimedia.org/math/0/d/0/0d08dc6628d00d4f6d7439183d4f8cc3.png showed the conversion algorithm. Seems very straight forward. – Christopher Oct 01 '14 at 13:47
1 Answers
1
The Android support library now has ColorUtils which can convert to and from CieLAB https://developer.android.com/reference/android/support/v4/graphics/ColorUtils.html

pingpongboss
- 76
- 1
- 1
- 9