---
title: "Resize Image in a Word Document"
---

```

## Purpose Summary

This page explains how to resize images inside a Word document using Aspose.Words.

```

```

See more details in the [Working with Images](/words/net/working-with-images/) documentation section.

```

The [DocumentBuilder](https://reference.aspose.com/words/net/aspose.words/documentbuilder/) provides several overloads of the [InsertImage](https://reference.aspose.com/words/net/aspose.words/documentbuilder/insertimage/#insertimage) method that allow you to insert an inline or floating image. For example, the [InsertImage](https://reference.aspose.com/words/net/aspose.words/documentbuilder/insertimage/) method is used to insert an image from a file or `URL` into a document.

Using [Shape](https://reference.aspose.com/words/net/aspose.words.drawing/shape/)class you can create or modify shapes in a Microsoft Word document.

The following code example shows how to resize an image:

```csharp
Document doc = new Document();

// Create New Document.
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Image Before Resize");
//insert image from disk
Shape shape = builder.InsertImage(@"../../data/aspose_Words-for-net.jpg");

// Write text in document.
builder.Write("ReSize image ");
shape = builder.InsertImage(@"../../data/aspose_Words-for-net.jpg");

// Changing image size. ConvertUtil Provides helper functions to convert between various measurement units. like Converts inches to points.
shape.Width = ConvertUtil.InchToPoint(0.5);
shape.Height = ConvertUtil.InchToPoint(0.5);

// Save document on file location.
builder.Document.Save("ImageReSize.doc");
```

```

The [ConvertUtil](https://reference.aspose.com/words/net/aspose.words/convertutil/)class provides helper functions to convert between various measurement units, like conversion [inches to points](https://reference.aspose.com/words/net/aspose.words/convertutil/inchtopoint/).

```

See also:

- [Github](https://github.com/aspose-words/Aspose.Words-for-.NET/releases/tag/Aspose.WordsFeaturesmissinginNPOIv1.2) for code example
- [Github](https://github.com/asposewords/Aspose.Words-for-.NET/releases/download/Aspose.WordsFeaturesmissinginNPOIv1.2/08.03-ImageReSize.zip) for running code
