Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            paintBitmap = new PaintBitmap(gridWidth, gridHeight, paintImage);

            floodFiller = new FloodFill(paintBitmap, paintBitmap.PutPixel);

            drawer = new Drawer(1, paintBitmap.PutPixel);

            //initGameLoopDisp();
        }
Beispiel #2
0
 public FloodFill(PaintBitmap paintBitmap, Action <int, int, System.Drawing.Color> putPixel)
 {
     PutPixel         = putPixel;
     this.paintBitmap = paintBitmap;
 }