Aspose::Page::XPS::XpsDocument::CreateImageBrush method

XpsDocument::CreateImageBrush(System::SharedPtr<XpsModel::XpsImage>, System::Drawing::RectangleF, System::Drawing::RectangleF) method

Creates a new image brush.

System::SharedPtr<XpsModel::XpsImageBrush> Aspose::Page::XPS::XpsDocument::CreateImageBrush(System::SharedPtr<XpsModel::XpsImage> image, System::Drawing::RectangleF viewbox, System::Drawing::RectangleF viewport)
ParameterTypeDescription
imageSystem::SharedPtr<XpsModel::XpsImage>An image resource.
viewboxSystem::Drawing::RectangleFThe position and dimensions of the brush’s source content.
viewportSystem::Drawing::RectangleFThe region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied

ReturnValue

New image brush.

See Also

XpsDocument::CreateImageBrush(System::String, System::Drawing::RectangleF, System::Drawing::RectangleF) method

Creates a new image brush.

System::SharedPtr<XpsModel::XpsImageBrush> Aspose::Page::XPS::XpsDocument::CreateImageBrush(System::String imagePath, System::Drawing::RectangleF viewbox, System::Drawing::RectangleF viewport)
ParameterTypeDescription
imagePathSystem::StringThe path to the image to take as a brush tile.
viewboxSystem::Drawing::RectangleFThe position and dimensions of the brush’s source content.
viewportSystem::Drawing::RectangleFThe region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied

ReturnValue

New image brush.

See Also