ICanvasLinearGradientFactory.Create

ICanvasLinearGradientFactory.Create method

Creates a linear gradient along the line given by the coordinates represented by the parameters.

public ICanvasGradient Create(double x0, double y0, double x1, double y1, 
    Func<string, Color> parseColor)
ParameterTypeDescription
x0DoubleThe x axis of the coordinate of the start point.
y0DoubleThe y axis of the coordinate of the start point.
x1DoubleThe x axis of the coordinate of the end point.
y1DoubleThe y axis of the coordinate of the end point.
parseColorFunc`2A function for parsing a color string into a System.Drawing.Color object.

Return Value

The created linear gradient.

See Also