Exemplo n.º 1
0
 public SpanImageResample(IRasterBufferAccessor src,
                          ISpanInterpolator inter,
                          ImageFilterLookUpTable filter) : base(src, inter, filter)
 {
     m_scale_limit = (20);
     m_blur_x      = ((int)image_subpixel_scale_e.Scale);
     m_blur_y      = ((int)image_subpixel_scale_e.Scale);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 //--------------------------------------------------------------------
 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;
 }
Exemplo n.º 5
0
 public void filter(ImageFilterLookUpTable v)
 {
     m_filter = v;
 }
Exemplo n.º 6
0
        public SpanImageResample(IRasterBufferAccessor src,
							ISpanInterpolator inter,
							ImageFilterLookUpTable filter)
            : base(src, inter, filter)
        {
            m_scale_limit = (20);
            m_blur_x = ((int)image_subpixel_scale_e.Scale);
            m_blur_y = ((int)image_subpixel_scale_e.Scale);
        }
Exemplo n.º 7
0
 //--------------------------------------------------------------------
 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;
 }
Exemplo n.º 8
0
 //--------------------------------------------------------------------
 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;
 }
Exemplo n.º 9
0
        //--------------------------------------------------------------------
        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;
        }
Exemplo n.º 10
0
 public void filter(ImageFilterLookUpTable v)
 {
     m_filter = v;
 }
Exemplo n.º 11
0
 //--------------------------------------------------------------------
 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;
 }
Exemplo n.º 12
0
 //--------------------------------------------------------------------
 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;
 }