Add Image
using IronWord;
using IronWord.Models;

// Load docx
WordDocument doc = new WordDocument();

// Configure image
IronWord.Models.ImageContent image = new IronWord.Models.ImageContent("salvatore-tonnara.jpg");
image.Width = 200; // In unit pixel
image.Height = 200; // In unit pixel
Paragraph paragraph = new Paragraph();

// Add image
paragraph.AddImage(image);

// Add paragraph
doc.AddParagraph(paragraph);

// Export docx
doc.SaveAs("save_document.docx");
NuGet Download
PM > Install-Package IronWord
Add Image

Add Image

The code snippet below demonstrates how to load a Word document, configure an image with specific dimensions, and then add this image into the document. A new Paragraph object is created to contain the image, which is added using the AddImage method of the paragraph. This paragraph, now containing the image, is subsequently added to the document using AddParagraph. Finally, the modified document is exported.

Explore Document Elements Tutorial for More Insights.
View on GitHub

Ready to Get Started?

Nuget Downloads 61,140Version:2026.11just released