(Right list this time -- apologies if you've already seen this on the wrong 
list...)

Is it possible to have lcms copy the alpha channel values when doing a 
transform? Or should that happen automatically?

And, perhaps related, if I do something like this:

// Or any other rgb profile, problem is the same
cmsHPROFILE hProfile = cmsCreate_sRGBProfile(); 

cmsHTRANSFORM tf = cmsCreateTransform(hProfile,
                                      TYPE_BGRA_16,
                                      hProfile,
                                      TYPE_BGRA_8,
                                      INTENT_PERCEPTUAL,
                                      0);

cmsDoTransform(tf, rgb16data, rgb8data, numPixels);

Then the result will be half apparently half-transparent
-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

Attachment: pgpe8PFPLCI6S.pgp
Description: PGP signature

Reply via email to