Alpha fixed to float (0-1), was: is alpha fixed to 8bit unsigned
Grzegorz Borowiak
grzes at gnu.univ.gda.pl
Thu Jun 16 12:06:49 CEST 2005
On Thu, 16 Jun 2005, Boudewijn Rempt wrote:
> What I propose as a solution is to define alpha in Krita outside
> colorstrategies as a float with a range from 0 to 1, with 0 transparent and 1
> opaque. The colorstrategies can then convert the float value to whatever
> floats their own boat.
Keep in mind that conversion from float to int and vice versa is very
CPU-consuming. Float alpha is reasonable only if other channels are also
float - then it's fast. Otherwise it's damn slow.
--
Grzes
More information about the kimageshop
mailing list