create_image_brush method

create_image_brush

Creates a new image brush.

Returns

New image brush.

def create_image_brush(self, image, viewbox, viewport):
    ...
ParameterTypeDescription
imageaspose.page.xps.xpsmodel.XpsImageAn image resource.
viewboxaspose.pydrawing.RectangleFThe position and dimensions of the brush’s source content.
viewportaspose.pydrawing.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

create_image_brush

Creates a new image brush.

Returns

New image brush.

def create_image_brush(self, image_path, viewbox, viewport):
    ...
ParameterTypeDescription
image_pathstrThe path to the image to take as a brush tile.
viewboxaspose.pydrawing.RectangleFThe position and dimensions of the brush’s source content.
viewportaspose.pydrawing.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

See Also