blending colors

BlitzPlus Forums/BlitzPlus Programming/blending colors

Chevron(Posted 2005) [#1]
Hi,

I am wanting to create a function that can blend the edges of one image to another by a set percentage.

Does anyone know if such a function already exsists, have had a scout through the archives but have not unearthed anything.

I suppose what I need is a function that alpha's the top image edges by a variable amount, dependant on the shade of the pixel underneath it.

Any ideas?


Rob Farley(Posted 2005) [#2]
I did this a while back... It might help

http://www.blitzbasic.com/codearcs/codearcs.php?code=1325


Chevron(Posted 2005) [#3]
Cheers Rob,

I'll take a look.


xlsior(Posted 2005) [#4]
I did a cross-fade routine some time ago, it even takes percentages as a parameter:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1281