Aspose::Page::XPS::DocumentUtils::CreateImage method

DocumentUtils::CreateImage method

Creates a rectangular path filled with an image.

System::SharedPtr<XpsModel::XpsPath> Aspose::Page::XPS::DocumentUtils::CreateImage(System::String fileName, System::Drawing::RectangleF imageBox, ImageMode mode=Aspose::Page::XPS::ImageMode::FitToBox)
ParameterTypeDescription
fileNameSystem::StringThe name of the image file.
imageBoxSystem::Drawing::RectangleFThe image box to fill with the image.
modeImageModeImage fit mode.

ReturnValue

The XPS path.

See Also