Esempio n. 1
0
 public SpanImageResample(IRasterBufferAccessor src,
                          ISpanInterpolator <T> inter,
                          ImageFilterLookUpTable <T> 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_resample_rgb(IRasterBufferAccessor src,
                                ISpanInterpolator <T> inter,
                                ImageFilterLookUpTable <T> filter) :
     base(src, inter, filter)
 {
     if (src.PixelFormat.Blender.NumPixelBits != 24)
     {
         throw new System.FormatException("You have to use a rgb blender with span_image_resample_rgb");
     }
     OrderR = src.PixelFormat.Blender.OrderR;
     OrderG = src.PixelFormat.Blender.OrderG;
     OrderB = src.PixelFormat.Blender.OrderB;
 }
 //--------------------------------------------------------------------
 public SpanImageFilterRgb2x2(IRasterBufferAccessor src, ISpanInterpolator <T> inter, ImageFilterLookUpTable <T> 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 SpanImageFilterRgb(IRasterBufferAccessor src, ISpanInterpolator <T> inter, ImageFilterLookUpTable <T> 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;
 }