예제 #1
0
 protected void Initialize(FloodFillContext context)
 {
     this.bmp = context.bitmap;
     this.data = context.data;
     this.aBorderColor = context.borderColor.ToArgb();
     this.aFillColor = context.fillColor.ToArgb();
     this.aBackColor = context.backColor.ToArgb();
     this.fillColor = context.fillColor;
     this.backColor = context.backColor;
     this.borderColor = context.borderColor;
 }
예제 #2
0
        public void BeginTest(Color testColorToFill)
        {
            Bitmap bmp = partitionDrawer.LoadLastImage() as Bitmap;
            if (bmp == null)
                bmp = drawContext.LastBitmap;
            FloodFillContext context = new FloodFillContext(bmp as Bitmap, data,
                    fillStartDrawer.FillStartPoint, drawContext.polygonColor, testColorToFill, drawContext.backColor);
            if (tester == null)
            {
                tester = new Tests.CurrentTester(context, partitionDrawer);
                if (TestsEndEvent != null)
                    tester.TestsEnded += new EventHandler(TestsEndEvent);
            }
            else
                tester.RefreshData(context, partitionDrawer);

            tester.BeginTest();
        }
예제 #3
0
 public abstract void FloodFill(FloodFillContext context);