I'm new in using imagemagick and I have a problem.
I'm trying to combine to images in one and everything works fine except the offset of my first image. I m tring to put a small image in the center of a second which is a frame but it doesnt move in anyway and keeps appearing in the top-left corner. Here's my code
Code: Select all
using (MagickImageCollection images = new MagickImageCollection())
{
MagickImage first = new MagickImage(name);
first.Format = MagickFormat.Png;
MagickGeometry size = new MagickGeometry(210,180,640, 442);
size.IgnoreAspectRatio = true;
first.AdaptiveResize(size);
images.Add(first);
MagickImage frame = new MagickImage("korniza.png");
images.Add(frame);
using (MagickImage result = images.Mosaic())
{
result.Write("Mosaic.png");
}
}
My guess is tha the image must be relative to something if it is to get an offset but I don't know hot to do that either.
Please give me a hand in this,
thank you in advance.