Aspose::Page::XPS::XpsDocument::CreateImage method

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

stream 创建一个新的图像资源。

System::SharedPtr<XpsModel::XpsImage> Aspose::Page::XPS::XpsDocument::CreateImage(System::SharedPtr<System::IO::Stream> stream)
ParameterType描述
System::SharedPtr<System::IO::Stream>包含要作为资源的图像的流。

ReturnValue

新的图像资源。

另见

XpsDocument::CreateImage(System::String) method

从位于 imagePath 的图像文件创建一个新的图像资源。

System::SharedPtr<XpsModel::XpsImage> Aspose::Page::XPS::XpsDocument::CreateImage(System::String imagePath)
ParameterType描述
imagePathSystem::String作为资源的图像路径。

ReturnValue

新的图像资源。

另见