[cairo] [RFC] Color space API (partial proposal)

Kai-Uwe Behrmann ku.b at gmx.de
Sun Feb 28 05:59:07 PST 2010

Am 01.03.10, 00:07 +1030 schrieb Adrian Johnson:
> Kai-Uwe Behrmann wrote:
>> Am 27.02.10, 00:45 +1030 schrieb Adrian Johnson:
>>> /* Set a CMYK profile to be used as the page color space
>>> * (and blending space)
>>> */
>>> dest_col_space = cairo_color_space_create_icc_from_file
>>>                                   ("my_cmyk_profile.icc");
>>> cairo_surface_set_color_space (surface, dest_col_space);
>> Is this a once only call to each surface? Then it probably could be nicely 
>> interwoven into the create surface call?
> Yes it is a once only call. It could be either part of a constructor or
> a separate call as above. The PDF backend allows each page to have a
> different color space so for PDF the cairo_surface_set_color_space()
> function makes more sense. In this case it is like the
> cairo_pdf_surface_set_size() call. If used it must be called before drawing 
> on the page. It can not be changed after drawing starts.

Would cairo_surface_set_color_space() make sense to other surfaces than 
the PDF one?

kind regards
Kai-Uwe Behrmann
developing for colour management 
www.behrmann.name + www.oyranos.org

More information about the cairo mailing list