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

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

Creates a new image resource out of stream .

System::SharedPtr<XpsModel::XpsImage> Aspose::Page::XPS::XpsDocument::CreateImage(System::SharedPtr<System::IO::Stream> stream)
ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>The stream containing the image to take as a resource.

ReturnValue

New image resource.

See Also

XpsDocument::CreateImage(System::String) method

Creates a new image resource out of image file located at the imagePath .

System::SharedPtr<XpsModel::XpsImage> Aspose::Page::XPS::XpsDocument::CreateImage(System::String imagePath)
ParameterTypeDescription
imagePathSystem::StringThe path to the image to take as a resource.

ReturnValue

New image resource.

See Also