## DocumentUtils::CreateImage method


创建一个填充图像的矩形路径。

```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 | 描述 |
| --- | --- | --- |
| fileName | System::String | 图像文件的名称。 |
| imageBox | System::Drawing::RectangleF | 用于填充图像的图像框。 |
| mode | ImageMode | 图像适配模式。 |

### ReturnValue

该 [XPS](../../) 路径。

## 另见

* 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++](../../../)
