## DocumentUtils::CreateImage method


Creates a rectangular path filled with an image.

```cpp
System::SharedPtr<XpsModel::XpsPath> Aspose::Page::XPS::DocumentUtils::CreateImage(System::String fileName, System::Drawing::RectangleF imageBox, ImageMode mode=Aspose::Page::XPS::ImageMode::FitToBox)
```


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

### ReturnValue

The [XPS](../../) path.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPath](../../../aspose.page.xps.xpsmodel/xpspath/)
* Class [String](../../../system/string/)
* Class [RectangleF](../../../system.drawing/rectanglef/)
* Enum [ImageMode](../../imagemode/)
* Class [DocumentUtils](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
