Esempio n. 1
0
 public MagBitmap(byte[] input)
 {
     bitmap = Formatting.ByteArrayToBinaryString(input);
     for (int i = bitmap.Length - 1; i >= 0; i--)
     {
         if (bitmap[i] == '1')
         {
             positions.Add(bitmap.Length - i);
             NonZeroCount++;
         }
         else
         {
             ZeroCount++;
         }
     }
 }