## XpsDocument::CreateImage(System::SharedPtr\<System::IO::Stream\>) method


Erstellt eine neue Bildressource aus *stream*.

```cpp
System::SharedPtr<XpsModel::XpsImage> Aspose::Page::XPS::XpsDocument::CreateImage(System::SharedPtr<System::IO::Stream> stream)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Stream | System::SharedPtr\<System::IO::Stream\> | Der Stream, der das Bild enthält, das als Ressource verwendet werden soll. |

### ReturnValue

Neue Bildressource.

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsImage](../../../aspose.page.xps.xpsmodel/xpsimage/)
* Class [Stream](../../../system.io/stream/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::CreateImage(System::String) method


Erstellt eine neue Bildressource aus einer Bilddatei, die unter *imagePath* liegt.

```cpp
System::SharedPtr<XpsModel::XpsImage> Aspose::Page::XPS::XpsDocument::CreateImage(System::String imagePath)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| imagePath | System::String | Der Pfad zum Bild, das als Ressource verwendet werden soll. |

### ReturnValue

Neue Bildressource.

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsImage](../../../aspose.page.xps.xpsmodel/xpsimage/)
* Class [String](../../../system/string/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
