We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert Round Rectangle Shape in Word Document & Fill it with Image using C# .NET | Image with Round Angles Corners

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;