[cairo] RGB to CIELab transformation
ajohnson at redneon.com
Tue Jan 24 02:26:15 PST 2012
On 24/01/12 19:52, Necko Nedjoni wrote:
> After I had a chance to inform about the CIELab, I believe I should
> formulate the question differently.
> Given that I use cairo for pdf output, where the main coloring function is
> cairo_set_source_rgb(cr, 1, 0.0, 1.0);
> I wonder could I output pdf file with colors that I primarily specify in
> CIELab space.
> So, given certain slice of the CIELab space, I would like to color the
> pdf file according to colors
> defined in the slice.
> Could this be handled by cairo?
> I got some suggestions on using alternative libraries, but, I suppose
> this is doable in cairo also.
Cairo PDF output does not support any color spaces other than DeviceRGB
because cairo does not have the API to specify alternative color spaces.
More information about the cairo