当前位置: 首页>>代码示例>>C#>>正文


C# ISpanInterpolator类代码示例

本文整理汇总了C#中ISpanInterpolator的典型用法代码示例。如果您正苦于以下问题:C# ISpanInterpolator类的具体用法?C# ISpanInterpolator怎么用?C# ISpanInterpolator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ISpanInterpolator类属于命名空间,在下文中一共展示了ISpanInterpolator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SpanSubdivisionAdaptor

        public SpanSubdivisionAdaptor(ISpanInterpolator interpolator,
							 double x, double y, uint len,
							 int subdiv_shift)
            : this(interpolator, subdiv_shift)
        {
            Begin(x, y, len);
        }
开发者ID:davidleon,项目名称:MOSA-Project,代码行数:7,代码来源:SpanSubdivisionAdaptor.cs

示例2: span_subdiv_adaptor

		public span_subdiv_adaptor(ISpanInterpolator interpolator, int subdiv_shift)
		{
			m_subdiv_shift = subdiv_shift;
			m_subdiv_size = 1 << m_subdiv_shift;
			m_subdiv_mask = m_subdiv_size - 1;
			m_interpolator = interpolator;
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:7,代码来源:agg_span_subdiv_adaptor.cs

示例3: ImgSpanGen

 public ImgSpanGen(ISpanInterpolator interpolator)
 {
     m_interpolator = interpolator;
     m_dx_dbl = 0.5;
     m_dy_dbl = 0.5;
     m_dx_int = (img_subpix_const.SCALE / 2);
     m_dy_int = (img_subpix_const.SCALE / 2);
 }
开发者ID:prepare,项目名称:HTML-Renderer,代码行数:8,代码来源:1_ImgSpanGen.cs

示例4: SpanImageFilterRGBABilinear

 public SpanImageFilterRGBABilinear(IRasterBufferAccessor src, ISpanInterpolator inter)
     : base(src, inter, null)
 {
     OrderR = src.PixelFormat.Blender.OrderR;
     OrderG = src.PixelFormat.Blender.OrderG;
     OrderB = src.PixelFormat.Blender.OrderB;
     OrderA = src.PixelFormat.Blender.OrderA;
 }
开发者ID:davidleon,项目名称:MOSA-Project,代码行数:8,代码来源:SpanImageFilterRGBA.cs

示例5: ImgSpanGenRGB_BilinearClip

 //--------------------------------------------------------------------
 public ImgSpanGenRGB_BilinearClip(IImageReaderWriter src,
                                   Drawing.Color back_color,
                                   ISpanInterpolator inter)
     : base(inter)
 {
     m_bgcolor = back_color;
     srcRW = (ImageReaderWriterBase)src;
 }
开发者ID:prepare,项目名称:HTML-Renderer,代码行数:9,代码来源:2_ImgSpanGenRGB.cs

示例6: ImgSpanGenGray_NNStepXby1

 public ImgSpanGenGray_NNStepXby1(IImageReaderWriter src, ISpanInterpolator spanInterpolator)
     : base(spanInterpolator)
 {
     srcRW = (ImageReaderWriterBase)src;
     if (srcRW.BitDepth != 8)
     {
         throw new NotSupportedException("The source is expected to be 32 bit.");
     }
 }
开发者ID:prepare,项目名称:HTML-Renderer,代码行数:9,代码来源:4_ImgSpanGenGray.cs

示例7: FilterRGBAImageSpanGen

 //--------------------------------------------------------------------
 public FilterRGBAImageSpanGen(IImageReaderWriter src,
                     ISpanInterpolator inter,
                     ImageFilterLookUpTable filter) :
     base(src, inter, filter)
 {
     if (src.GetRecieveBlender().NumPixelBits != 32)
     {
         throw new System.FormatException("You have to use a rgba blender with span_image_resample_rgba");
     }
 }
开发者ID:prepare,项目名称:HTML-Renderer,代码行数:11,代码来源:FilterRGBAImageSpanGen.cs

示例8: span_image_filter

		public span_image_filter(IImageBufferAccessor src,
			ISpanInterpolator interpolator, ImageFilterLookUpTable filter)
		{
			imageBufferAccessor = src;
			m_interpolator = interpolator;
			m_filter = (filter);
			m_dx_dbl = (0.5);
			m_dy_dbl = (0.5);
			m_dx_int = ((int)image_subpixel_scale_e.image_subpixel_scale / 2);
			m_dy_int = ((int)image_subpixel_scale_e.image_subpixel_scale / 2);
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:11,代码来源:agg_span_image_filter.cs

示例9: FilterImageSpanGenerator

 public FilterImageSpanGenerator(IImageReaderWriter src,
                     ISpanInterpolator inter,
                     ImageFilterLookUpTable filterLookup)
     : base(inter)
 {
     this.imageBufferAccessor = new ImageBufferAccessor(src);
     m_scale_limit = 20;
     //m_blur_x = ((int)img_subpix_scale.SCALE);
     //m_blur_y = ((int)img_subpix_scale.SCALE);
     this.filterLookup = filterLookup;
 }
开发者ID:prepare,项目名称:HTML-Renderer,代码行数:11,代码来源:FilterImageSpanGenerator.cs

示例10: span_gradient

		//--------------------------------------------------------------------
		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));
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:12,代码来源:agg_span_gradient.cs

示例11: SpanImageFilter

        public SpanImageFilter(IRasterBufferAccessor src,
			ISpanInterpolator interpolator, ImageFilterLookUpTable filter)
        {
            m_src = src;
            m_interpolator = interpolator;
            m_filter = (filter);
            m_dx_dbl = (0.5);
            m_dy_dbl = (0.5);
            m_dx_int = ((int)image_subpixel_scale_e.Scale / 2);
            m_dy_int = ((int)image_subpixel_scale_e.Scale / 2);
        }
开发者ID:Boddlnagg,项目名称:MOSA-Project,代码行数:11,代码来源:SpanImageFilter.cs

示例12: SpanGenGradient

 //--------------------------------------------------------------------
 public SpanGenGradient(ISpanInterpolator inter,
               IGradientValueCalculator gvc,
               IGradientColorsProvider m_colorsProvider,
               double d1, double d2)
 {
     this.m_interpolator = inter;
     this.m_grValueCalculator = gvc;
     this.m_colorsProvider = m_colorsProvider;
     m_d1 = AggBasics.iround(d1 * GR_SUBPIX_SCALE);
     m_d2 = AggBasics.iround(d2 * GR_SUBPIX_SCALE);
     dd = m_d2 - m_d1;
     if (dd < 1) dd = 1;
     stepRatio = (float)m_colorsProvider.GradientSteps / (float)dd;
 }
开发者ID:prepare,项目名称:HTML-Renderer,代码行数:15,代码来源:SpanGradient.cs

示例13: interpolator

 //--------------------------------------------------------------------
 public void interpolator(ISpanInterpolator v)
 {
     m_interpolator = v;
 }
开发者ID:Boddlnagg,项目名称:MOSA-Project,代码行数:5,代码来源:SpanImageFilter.cs

示例14: span_image_resample_rgba

 //--------------------------------------------------------------------
 public span_image_resample_rgba(IImageBufferAccessor src,
                     ISpanInterpolator inter,
                     ImageFilterLookUpTable filter) :
     base(src, inter, filter)
 {
     if (src.DestImage.GetBlender().NumPixelBits != 32)
     {
         throw new System.FormatException("You have to use a rgba blender with span_image_resample_rgba");
     }
 }
开发者ID:Wiladams,项目名称:NewTOAPIA,代码行数:11,代码来源:span_image_filter_rgba.cs

示例15: span_image_filter_rgba_bilinear

 public span_image_filter_rgba_bilinear(IImageBufferAccessor src, ISpanInterpolator inter)
     : base(src, inter, null)
 {
 }
开发者ID:Wiladams,项目名称:NewTOAPIA,代码行数:4,代码来源:span_image_filter_rgba.cs


注:本文中的ISpanInterpolator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。