public Bitmap AnalyseBitmap() { var bitmap = PinvokeHelpers.GetAdrenalineBitmap(); this.tileGrid = GetTileGrid(bitmap); var solver = new LevelSolver(this.tileGrid); this.solution = solver.SolveLevel().ToList(); DrawSolutionOnBitmap(bitmap); return(bitmap); }