//-------------------------------------------------------------------- public span_gradient(ISpanInterpolator inter, IGradient gradient_function, IColorFunction color_function, double d1, double d2) { m_interpolator = inter; m_gradient_function = gradient_function; m_color_function = color_function; m_d1 = (agg_basics.iround(d1 * gradient_subpixel_scale)); m_d2 = (agg_basics.iround(d2 * gradient_subpixel_scale)); }
//-------------------------------------------------------------------- public SpanGradient(ISpanInterpolator inter, IGradient gradient_function, IColorFunction color_function, double d1, double d2) { m_interpolator = inter; m_gradient_function = gradient_function; m_color_function = color_function; m_d1 = (Basics.Round(d1 * gradientSubpixelScale)); m_d2 = (Basics.Round(d2 * gradientSubpixelScale)); }
public void color_function(IColorFunction cf) { m_color_function = cf; }