c# - How can I combine 2 images using a 3rd alpha mask image -



c# - How can I combine 2 images using a 3rd alpha mask image -

i have 2 images, foreground , background. want combine 2 using alpha mask image such black = utilize background pixel, white = utilize foreground pixel , gray alpha blended mix of 2.

the foreground , background images fixed, while mask image created on fly , moved required create animation.

is there performant way using standard library? can utilize lockbits , loop i'd faster, if such thing exists.

i take @ great article on codeproject shows creating , using alpha masks in c#.

http://www.codeproject.com/articles/38494/bitmap-alpha-layer-editor

there many other graphics examples on code project if browse around.

this 1 illustration too:

http://www.codeproject.com/articles/18035/quick-n-dirty-alpha-mask-generator

hope helps

c# image mono

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -