public MainWindow() { InitializeComponent(); paintBitmap = new PaintBitmap(gridWidth, gridHeight, paintImage); floodFiller = new FloodFill(paintBitmap, paintBitmap.PutPixel); drawer = new Drawer(1, paintBitmap.PutPixel); //initGameLoopDisp(); }
public FloodFill(PaintBitmap paintBitmap, Action <int, int, System.Drawing.Color> putPixel) { PutPixel = putPixel; this.paintBitmap = paintBitmap; }