Hello!
How can I make make image with round angles?
In the MS Word I make rounded rectangle shape and fill it by image.
But I dont idea how can I make using Aspose.Word.
Doc1.zip (1000.3 KB)
You can meet this requirement by using the following code:
Document doc = new Document("E:\\Temp\\input.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = new Shape(doc, ShapeType.RoundRectangle);
shape.Width = 4 * 72;
shape.Height = 4 * 72;
shape.ImageData.SetImage("E:\\Temp\\image.png");
builder.InsertNode(shape);
doc.Save("E:\\Temp\\20.6.docx");