• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating CMYK Colorspace

 
Lionel Kingsley
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

One can create a colorspace of type RGB as follows:

ColorSpace rgbCS = ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB);


Simillarly how to create a colorspace of type CMYK?

Also i would be appreciate if you could specify the difference between
Linear RGB and sRGB.

Thanks.
 
Lionel Kingsley
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried to create a color space of type CMYK as follows:


But i got "Unknown color space" error message.

It seems like we can only create colorspace of type CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC or CS_sRGB.

Then what is the use of TYPE_CMYK constant?

But it is known that one can use some formulas to convert between RGB and CMYK colorspace.

But is it really possible to create the ColorSpace instance of type CMYK?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic