本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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;
}
示例5: ImgSpanGenRGB_BilinearClip
//--------------------------------------------------------------------
public ImgSpanGenRGB_BilinearClip(IImageReaderWriter src,
Drawing.Color back_color,
ISpanInterpolator inter)
: base(inter)
{
m_bgcolor = back_color;
srcRW = (ImageReaderWriterBase)src;
}
示例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.");
}
}
示例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");
}
}
示例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);
}
示例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;
}
示例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));
}
示例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);
}
示例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;
}
示例13: interpolator
//--------------------------------------------------------------------
public void interpolator(ISpanInterpolator v)
{
m_interpolator = v;
}
示例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");
}
}
示例15: span_image_filter_rgba_bilinear
public span_image_filter_rgba_bilinear(IImageBufferAccessor src, ISpanInterpolator inter)
: base(src, inter, null)
{
}