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.