Adjusting integer based on multiple elements in int array
At the risk of being 'clever':

int Blue = 0;
int[] Adjustments = new int[24];
// ... populate Adjustments 

for (int blueIndex=0; blueIndex&lt;8; blueIndex++)
{
   if (Adjustments[blueIndex] == 255)
   {
      Blue |= (1 &lt;&lt; (7 - blueIndex));
   }
}


Since in effect you're setting bits anyway I think using bitwise operations is idiomatic here.