private void ApplyMask(DataMaskPredicate predicate) { for (int row = 0; row < Width; row++) { for (int col = 0; col < Width; col++) { if (!_modules.IsReserved(row, col) && predicate(row, col)) { _modules.FlipColor(row, col); } } } }