2

I want create Color with Lab color space.

Color color = new Color(ColorSpace.getInstance(ColorSpace.TYPE_Lab), new float[]{0, 0, 0}, 0f);

And have exception

java.lang.IllegalArgumentException: Unknown color space

And this exception only for integers ColorSpace.TYPE_*, but with ColorSpace.CS_* all right. They write that ColorSpace.TYPE_* - "Any of the family of * color spaces.". Please tell me how create true Color with Lab color space for example.

Kara
  • 6,115
  • 16
  • 50
  • 57
Dmitry
  • 31
  • 5
  • TYPE_lab just describes a generic LAB color space, you'll have to implement it yourself, AFAIK. See http://stackoverflow.com/questions/4593469/java-how-to-convert-rgb-color-to-cie-lab – Adrian Leonhard Mar 09 '15 at 08:36
  • Adrian Leonhard, Thanks! I will try. – Dmitry Mar 09 '15 at 08:45

0 Answers0