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)
Syntaxpublic XpsImageBrush CreateImageBrush(
XpsImage image,
RectangleF viewbox,
RectangleF viewport
)
Public Function CreateImageBrush (
image As XpsImage,
viewbox As RectangleF,
viewport As RectangleF
) As XpsImageBrush
public:
XpsImageBrush^ CreateImageBrush(
XpsImage^ image,
RectangleF viewbox,
RectangleF viewport
)
member CreateImageBrush :
image : XpsImage *
viewbox : RectangleF *
viewport : RectangleF -> XpsImageBrush
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:
XpsImageBrushNew image brush.
See Also