Beispiel #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);
 }
        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);
        }
Beispiel #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;
 }
 public void filter(ImageFilterLookUpTable v)
 {
     m_filter = v;
 }
        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);
        }
 //--------------------------------------------------------------------
 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;
 }
 //--------------------------------------------------------------------
 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;
 }
        //--------------------------------------------------------------------
        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;
        }
Beispiel #10
0
 public void filter(ImageFilterLookUpTable v)
 {
     m_filter = v;
 }
 //--------------------------------------------------------------------
 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;
 }
 //--------------------------------------------------------------------
 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;
 }