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

Νέος πόρος εικόνας.

Δείτε επίσης