create_image_brush method
Contents
[
Hide
]create_image_brush
Creates a new image brush.
Returns
New image brush.
def create_image_brush(self, image, viewbox, viewport):
...
Parameter | Type | Description |
---|---|---|
image | aspose.page.xps.xpsmodel.XpsImage | An image resource. |
viewbox | aspose.pydrawing.RectangleF | The position and dimensions of the brush’s source content. |
viewport | aspose.pydrawing.RectangleF | 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 |
create_image_brush
Creates a new image brush.
Returns
New image brush.
def create_image_brush(self, image_path, viewbox, viewport):
...
Parameter | Type | Description |
---|---|---|
image_path | str | The path to the image to take as a brush tile. |
viewbox | aspose.pydrawing.RectangleF | The position and dimensions of the brush’s source content. |
viewport | aspose.pydrawing.RectangleF | 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 |
See Also
- module
aspose.page.xps
- class
XpsDocument
- class
XpsImageBrush