This project has moved. For the latest updates, please go here.

Combine layers

Sep 16, 2015 at 4:24 PM
Hi,
I have one image that is a car.
I need to apply to this image a layer: trasparent for a percentual and trasparent dark gray to other part.
When I try to combine, it's work but the color are diffently.
How I can do it?
I can use any type of image (gif, png ecc.)

My code is

using (MagickImageCollection images = new MagickImageCollection())
{
 MagickImage first = new MagickImage(@"c:\testdati\36.gif");
 images.Add(first);

 MagickImage second = new MagickImage(@"c:\testdati\layer.gif");
  images.Add(second);

  MagickImage risultato = images.Combine();                        
  risultato.Write(@"c:\testdati\risultato"+i+".gif");
}

Thanks.!

Original image to apply Image
Layer image Image
Result: Image
Coordinator
Sep 17, 2015 at 8:42 PM
Your images seem to be gone. Can you fix the link or share them with something like dropbox?
Sep 22, 2015 at 5:31 PM
I resolve it. The problem is input image format. Using png it's work fine.
Thanks