Merge 2 or more images with opacity and replace color

Jan 27, 2012 at 9:34 AM

Hello,
I am porting a Windows Forms application to a Silverlight/WPF project and I found your wonderful project.

What I need is a method like this (pseudocode)

 

public System.Windows.Controls.Image GetMergedImagesIntoOne(Uri baseImage, IEnumerable<Uri> layeredImages)
{
   /// 
   foreach(var image in layeredImages)
  {

  }
}

In my app all the layered images are full black and I would like to replace the color according to some condition and make them partially transparent in order to see through down to the base image.

Do you know of any sample that shows this possibility, or can anyone point me in the right direction?
Best Regards

Roberto