Page 1 of 1

How many levels of opacity?

PostPosted: Mar 6, 2004 @ 6:39pm
by Pejo Software - Per
How many levels of opacity/alpha does GapiDraw use?

If one is satisfied with 64 levels one can reduce the number of multiplications from 3 to 2 per pixel (if you operate on one pixel).

If you operate on 2 pixels you could do the same and reduce the number of multiplications from 1.5 to 1 per pixel but then you have to use only 32 levels.
Is that enough? How does GapiDraw do it?

PostPosted: Mar 6, 2004 @ 7:44pm
by Pejo Software - Per
After doing some more thinking I realized that I probably was wrong.
I don't see how it is possible to use reduce it to only one multiplication, I think that the way I came up with would lead to overflow.

PostPosted: Mar 7, 2004 @ 12:27am
by StephC

PostPosted: Mar 7, 2004 @ 9:58am
by bluescrn

PostPosted: Mar 7, 2004 @ 10:20am
by Pejo Software - Per

PostPosted: Mar 7, 2004 @ 10:56am
by Johan

PostPosted: Mar 7, 2004 @ 10:59am
by Johan

PostPosted: Mar 7, 2004 @ 11:34am
by Pejo Software - Per

PostPosted: Mar 7, 2004 @ 11:44am
by bluescrn

PostPosted: Mar 7, 2004 @ 11:56am
by Johan