• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ISpanInterpolator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: span_image_filter_rgba_bilinear_clip

 public span_image_filter_rgba_bilinear_clip(IImageBufferAccessor src,
     IColorType back_color, ISpanInterpolator inter)
     : base(src, inter, null)
 {
     m_OutsideSourceColor = back_color.GetAsRGBA_Bytes();
 }
开发者ID:Wiladams,项目名称:NewTOAPIA,代码行数:6,代码来源:span_image_filter_rgba.cs


示例17: span_image_filter_rgb_2x2

		//--------------------------------------------------------------------
		public span_image_filter_rgb_2x2(IImageBufferAccessor src, ISpanInterpolator inter, ImageFilterLookUpTable filter)
			: base(src, inter, filter)
		{
		}
开发者ID:CNCBrasil,项目名称:agg-sharp,代码行数:5,代码来源:agg_span_image_filter_rgb.cs


示例18: span_image_filter_rgb_2x2

 //--------------------------------------------------------------------
 public span_image_filter_rgb_2x2(IRasterBufferAccessor src, ISpanInterpolator inter, ImageFilterLookUpTable filter)
     : base(src, inter, filter)
 {
     OrderR = src.PixelFormat.Blender.OrderR;
     OrderG = src.PixelFormat.Blender.OrderG;
     OrderB = src.PixelFormat.Blender.OrderB;
     OrderA = src.PixelFormat.Blender.OrderA;
 }
开发者ID:GeroL,项目名称:MOSA-Project,代码行数:9,代码来源:SpanImageFilterRGB.cs


示例19: span_image_filter_rgb

 //--------------------------------------------------------------------
 public span_image_filter_rgb(IRasterBufferAccessor src, ISpanInterpolator inter, ImageFilterLookUpTable filter)
     : base(src, inter, filter)
 {
     if (src.PixelFormat.PixelWidthInBytes != 3)
     {
         throw new System.NotSupportedException("span_image_filter_rgb must have a 24 bit PixelFormat");
     }
     OrderR = src.PixelFormat.Blender.OrderR;
     OrderG = src.PixelFormat.Blender.OrderG;
     OrderB = src.PixelFormat.Blender.OrderB;
     OrderA = src.PixelFormat.Blender.OrderA;
 }
开发者ID:GeroL,项目名称:MOSA-Project,代码行数:13,代码来源:SpanImageFilterRGB.cs


示例20: SpanImageResampleRGB

        //--------------------------------------------------------------------
        public SpanImageResampleRGB(IRasterBufferAccessor src,
							ISpanInterpolator inter,
							ImageFilterLookUpTable filter)
            : base(src, inter, filter)
        {
            if (src.PixelFormat.Blender.NumPixelBits != 24)
            {
                throw new System.FormatException("You have to use a rgb blender with SpanImageResampleRGB");
            }
            OrderR = src.PixelFormat.Blender.OrderR;
            OrderG = src.PixelFormat.Blender.OrderG;
            OrderB = src.PixelFormat.Blender.OrderB;
        }
开发者ID:GeroL,项目名称:MOSA-Project,代码行数:14,代码来源:SpanImageFilterRGB.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISparqlExpression类代码示例发布时间:2022-05-24
下一篇:
C# ISpace类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap