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, angle, is_scaled, colors, spread_mode):
    ...
ParameterTypeDescription
rectaspose.pydrawing.RectangleFThe rectangle defining the gradient bounds.
anglefloatThe angle of the gradient.
is_scaledboolDetermines whether the gradient is scaled with the rectangle.
colorslistThe interpolation colors for the gradient. See IInterpolationColor.
spread_modeSpreadModeThe spread mode for the gradient. See SpreadMode.

See Also