How do I precisely place multiple overlapping images? Below is the code I have so far. It overlaps the images at their top left corner. See example below.
Background: My code will intelligently merge multiple images into one so they overlap where the pixels are identical. I'm creating 10 to 20 random screen shots zoomed into paused games and I need to combine them into one large picture. Each picture could be a different width and height. I don't want any distortion of the original images so photo panoramic software will not work for me.
How do I position each image anywhere I want by specifying either an absolute or relative top and left?
string[] files = Directory.GetFiles(".", "*.png", SearchOption.TopDirectoryOnly); MagickImageCollection collection = new MagickImageCollection(); for (int i = 0; i < files.Length; i++) { collection.Add(files[i]); } MagickImage result = collection.Mosaic(); result.Write(@"output\output.png");
Background: My code will intelligently merge multiple images into one so they overlap where the pixels are identical. I'm creating 10 to 20 random screen shots zoomed into paused games and I need to combine them into one large picture. Each picture could be a different width and height. I don't want any distortion of the original images so photo panoramic software will not work for me.
How do I position each image anywhere I want by specifying either an absolute or relative top and left?