XpsDocumentCreateImageBrush Method (XpsImage, RectangleF, RectangleF)

Creates a new image brush.

Namespace:  Aspose.Page.XPS
Assembly:  Aspose.Page (in Aspose.Page.dll) Version: 20.1.0.0 (20.1)
Syntax
public XpsImageBrush CreateImageBrush(
	XpsImage image,
	RectangleF viewbox,
	RectangleF viewport
)

Parameters

image
Type: Aspose.Page.XPS.XpsModelXpsImage
An image resource.
viewbox
Type: System.DrawingRectangleF
The position and dimensions of the brush's source content.
viewport
Type: System.DrawingRectangleF
The 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

Return Value

Type: XpsImageBrush
New image brush.
See Also