IDrawingFactory.CreateLinearGradientBrush

CreateLinearGradientBrush(RectangleF, IInterpolationColor[])

Creates a linear gradient brush with the specified parameters.

public ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, IInterpolationColor[] colors)
ParameterTypeDescription
rectRectangleFThe rectangle defining the gradient bounds.
colorsIInterpolationColor[]The interpolation colors for the gradient. See IInterpolationColor.

Return Value

The created ILinearGradientBrush.

See Also


CreateLinearGradientBrush(RectangleF, float, bool, IInterpolationColor[], SpreadMode)

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 angle is affected by transformation matrix associated with the brush.
colorsIInterpolationColor[]The interpolation colors for the gradient. See IInterpolationColor.
spreadModeSpreadModeThe spread mode for the gradient. See SpreadMode.

Return Value

The created ILinearGradientBrush.

See Also