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


Maakt een nieuw afbeeldingsresource aan vanuit *stream*.

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


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| stream | System::SharedPtr\<System::IO::Stream\> | De stream die de afbeelding bevat die als resource moet worden genomen. |

### ReturnValue

Nieuwe afbeeldingsresource.

## Zie ook

* 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


Maakt een nieuw afbeeldingsresource aan vanuit een afbeeldingsbestand op *imagePath*.

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


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| imagePath | System::String | Het pad naar de afbeelding die als resource moet worden genomen. |

### ReturnValue

Nieuwe afbeeldingsresource.

## Zie ook

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