IDrawingFactory.CreateLinearGradientBrush

IDrawingFactory.CreateLinearGradientBrush method

Creates a linear gradient brush with the specified parameters.

public ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, float angle, bool isScaled, 
    IInterpolationColor[] colors, SpreadMode spreadMode)
ParameterTypeDescription
rectRectangleFThe rectangle defining the gradient bounds.
angleSingleThe angle of the gradient.
isScaledBooleanDetermines whether the gradient is scaled with the rectangle.
colorsIInterpolationColor[]The interpolation colors for the gradient. See IInterpolationColor.
spreadModeSpreadModeThe spread mode for the gradient. See SpreadMode.

Return Value

The created ILinearGradientBrush.

See Also