« Return to Thread: PDF, CMYK and cairo

Re: PDF, CMYK and cairo

by Aubanel MONNIER :: Rate this Message:

Reply to Author | View in Thread



2008/2/22, MenTaLguY <mental@...>:
On Fri, 22 Feb 2008 17:59:45 +0100, "Aubanel MONNIER" <aubanel@...> wrote:
> For me the only big question in terms of API is: should the colorspace be
> document specific or on a per color basis ? Is there any use case where
> you want to mix on the same document RGBs and CMYKs ? I don't think so, but I
> might be wrong.


The correct way to do this would be to specify an ICC profile to establish
the document's color model, and then specify non-rgb colors as ICC colors.

-mental


How does this translate in terms of API ?
From what I've guessed from ./svg/svg-icc-color.h , could this be something like
surface_set_icc(char * name, icc* data); // attach an icc to a document
and
set_source_icc_color(context *cr, char * icc_name, float *color);
Does icc handle alpha or should an additional alpha paremeter be present in set_source_icc_color ?

To get the ball rolling, what do you think if I setup a wiki page to put together something we could propose to the cairo ML ?
-aubanel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel

 « Return to Thread: PDF, CMYK and cairo