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


*stream* 에서 새 이미지 리소스를 생성합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 스트림 | System::SharedPtr\<System::IO::Stream\> | 리소스로 사용할 이미지를 포함하는 스트림입니다. |

### ReturnValue

새 이미지 리소스.

## 또 보기

* 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


*imagePath* 에 위치한 이미지 파일에서 새 이미지 리소스를 생성합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| imagePath | System::String | 리소스로 사용할 이미지의 경로입니다. |

### ReturnValue

새 이미지 리소스.

## 또 보기

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