PDA

View Full Version : Calcualtion of Alfa chanel based on RGB



Steve_7
09-05-2001, 05:23 PM
Does anyone know formula, for calculation of the Alfa value based on R G B values?

Humus
09-05-2001, 06:31 PM
There is no such formula. Alpha is independent of RGB.
If you want to use say the brightness as alpha the formula A = 0.30*R + 0.59*G + 0.11*B

Steve_7
09-05-2001, 06:34 PM
Thaks a lot.