示例#1
0
 //--------------------------------------------------------------------
 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));
 }
示例#2
0
 //--------------------------------------------------------------------
 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));
 }
示例#3
0
		//--------------------------------------------------------------------
		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));
		}
示例#4
0
 public void color_function(IColorFunction cf)
 {
     m_color_function = cf;
 }
示例#5
0
 //--------------------------------------------------------------------
 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));
 }
示例#6
0
		public void color_function(IColorFunction cf)
		{
			m_color_function = cf;
		}