コード例 #1
0
 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);
             }
         }
     }
 }
コード例 #2
0
 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);
             }
         }
     }
 }