## DocumentUtils.CreateImage method

Creates a rectangular path filled with an image.

```csharp
public XpsPath CreateImage(string fileName, RectangleF imageBox, 
    ImageMode mode = ImageMode.FitToBox)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String | The name of the image file. |
| imageBox | RectangleF | The image box to fill with the image. |
| mode | ImageMode | Image fit mode. |

### Return Value

The XPS path.

### See Also

* class [XpsPath](../../../aspose.page.xps.xpsmodel/xpspath/)
* enum [ImageMode](../../imagemode/)
* class [DocumentUtils](../)
* namespace [Aspose.Page.XPS](../../documentutils/)
* assembly [Aspose.Page](../../../)


