public CellMap(uint height, uint width, Image image, int cellSize) { this.width = width; this.height = height; lengthInBytes = (int)(width * height); cells = new byte[lengthInBytes]; tempCells = new byte[lengthInBytes]; for (int c = 0; c < width * height; c++) { cells[c] = 0; } display = new CellMapDisplay(image, width, height, cellSize); InitDisplay(); }