## DocumentUtils::CreateImage method


Crea un percorso rettangolare riempito con un'immagine.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| fileName | System::String | Il nome del file immagine. |
| imageBox | System::Drawing::RectangleF | Il riquadro immagine da riempire con l'immagine. |
| mode | ImageMode | Modalità di adattamento immagine. |

### ReturnValue

Il percorso [XPS](../../).

## Vedi anche

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