create_linear_gradient_brush method

create_linear_gradient_brush

Creates a linear gradient brush with the specified parameters.

Returns

The created ILinearGradientBrush.

def create_linear_gradient_brush(self, rect, colors):
    ...
ParameterTypeDescription
rectaspose.pydrawing.RectangleFThe rectangle defining the gradient bounds.
colorslistThe interpolation colors for the gradient. See IInterpolationColor.

See Also