aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Creating CMYK Colorspace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Creating CMYK Colorspace" Watch "Creating CMYK Colorspace" New topic

Creating CMYK Colorspace

Lionel Kingsley

Joined: Jun 06, 2006
Posts: 10

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.

Lionel Kingsley

Joined: Jun 06, 2006
Posts: 10

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?
I agree. Here's the link:
subject: Creating CMYK Colorspace
It's not a secret anymore!