示例#1
0
        public Bitmap SmothFilter(Bitmap img)
        {
            PointedMeanFloodFill filter = new PointedMeanFloodFill();

            filter.Tolerance     = Color.FromArgb(150, 92, 92);
            filter.StartingPoint = new AForge.IntPoint(150, 100);
            return(filter.Apply(img));
        }
示例#2
0
        public mFillMean(Color ToleranceColor, int X, int Y)
        {
            Tolerance  = ToleranceColor;
            CoordPoint = new IntPoint(X, Y);

            BitmapType = mFilter.BitmapTypes.Rgb24bpp;

            Effect = new PointedMeanFloodFill();

            Effect.Tolerance     = Tolerance;
            Effect.StartingPoint = CoordPoint;

            filter = Effect;
        }