Esempio 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);
 }
Esempio 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);
        }
Esempio 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);
 }
 //--------------------------------------------------------------------
 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;
 }
Esempio n. 5
0
 public void filter(ImageFilterLookUpTable v)
 {
     m_filter = v;
 }
Esempio 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);
        }
Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
        }
Esempio n. 10
0
 public void filter(ImageFilterLookUpTable v)
 {
     m_filter = v;
 }
Esempio 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;
 }
Esempio 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;
 }