create_texture_brush method

create_texture_brush

Creates a texture brush with the specified parameters.

Returns

The created ITextureBrush.

def create_texture_brush(self, image_bytes, spread_mode, opacity, transformation_matrix):
    ...
ParameterTypeDescription
image_bytesbytesThe byte array containing the image data.
spread_modeSpreadModeThe spread mode for the brush. See SpreadMode.
opacityfloatThe opacity of the brush.
transformation_matrixIMatrixThe transformation matrix for the brush.

create_texture_brush

Creates a texture brush with the specified parameters for an elliptical shape.

Returns

The created ITextureBrush.

def create_texture_brush(self, center_point, transformation, interpolation_colors, bounds, opacity, elipse_rect):
    ...
ParameterTypeDescription
center_pointaspose.pydrawing.PointFThe center point of the ellipse.
transformationIMatrixThe transformation matrix for the brush. See IMatrix.
interpolation_colorslistThe interpolation colors for the brush. See IInterpolationColor.
boundsaspose.pydrawing.RectangleFThe bounds of the brush.
opacityfloatThe opacity of the brush.
elipse_rectaspose.pydrawing.RectangleFThe rectangle defining the elliptical shape.

See Also