Merge 2 Colors to make a tranparent Ovelap?

Posted by CrazyJoe on Stack Overflow See other posts from Stack Overflow or by CrazyJoe
Published on 2010-04-22T21:41:15Z Indexed on 2010/04/22 21:43 UTC
Read the original article Hit count: 151

Filed under:
|
|

I have two System.Windows.Media.Color (a and b)and need to get a and put over b to simulate tranparency. to use in my merge method:

public static Image Merge(Image a,Image b)
{

    for(int x=0;x < b.Width;x++ )
    {
        for (int y = 0; y < b.Height; y++)
        {
            a.SetPixel(x, y, b.GetPixel(x, y));
        }
    }
    return a;
}

Help Thank's!!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET