1

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.

codebot
  • 2,540
  • 3
  • 38
  • 89
user3517658
  • 349
  • 3
  • 14
  • 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 Answers1

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