How set image position to overlap on another one using C#

How do we use Aspose.Words to overlay an image over another image in a Word document

Hi

Please accept my apology for late response.

Thanks for your query. Please use the following code snippet to overlay an image over another image. Select text wrapping style other than In Line to overlay an image over another image.

// This creates a builder and also an empty document inside the builder.

DocumentBuilder builder = new DocumentBuilder();

// By default, the image is inline.

Shape shape = builder.InsertImage(MyDir + "Chrysanthemum.jpg");

shape.WrapType = WrapType.None;

shape.Width = 200;

shape.Height = 200;

shape.Top = 100;

shape.Left = 100;

shape = builder.InsertImage(MyDir + "Desert.jpg");

shape.WrapType = WrapType.None;

shape.Width = 200;

shape.Height = 200;

shape.Top = 140;

shape.Left = 140;

builder.Document.Save(MyDir + "Image.overlayOut.doc");