Re: [Lcms-user] Using lcms with cairo

2010-01-20 Thread Kai-Uwe Behrmann
Am 20.01.10, 10:56 -0600 schrieb Bob Friesenhahn: > On Wed, 20 Jan 2010, Richard Hughes wrote: >> Is there any planned support for pre-multiplied image formats in lcms2? >> Thanks. > > Color management has nothing to do with an alpha channel. Lcms may > accept (and preserve) an existing alpha cha

Re: [Lcms-user] Using lcms with cairo

2010-01-20 Thread Bob Friesenhahn
On Wed, 20 Jan 2010, Richard Hughes wrote: > Is there any planned support for pre-multiplied image formats in lcms2? > Thanks. Color management has nothing to do with an alpha channel. Lcms may accept (and preserve) an existing alpha channel as a means of convenience. What you are requesting

[Lcms-user] Using lcms with cairo

2010-01-20 Thread Richard Hughes
As you might know, cairo uses a ARGB pre-multiplied format for storing surfaces. That is to say, that the A,R,G,B values have been pre-multiplied by the alpha channel, so become A,RA,GA,BA. In GTK (where we're hopefully soon to be using lcms) I'm having to un-premultiply the cairo surface before s