On Thursday 25 August 2005 13:03, Boudewijn Rempt wrote: > (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?
Well, while I still want to know about that, the following was the result of an error of mine I made while trying to copy the alpha channel from 16 bit to 8 bit rgba by hand... > > 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
pgpEcn2VMd44w.pgp
Description: PGP signature