title: make 24 bit color bitmap save in normal brightness level
body: <p>This is my bitmap creation code</p>
  
  <pre><code>public static Bitmap Plot24(ref byte[] bufferArray, int lengthOfBufferArray, String fileName)
      {
          int position = 0;      
  
          int rows = (int)Math.Ceiling((double)lengthOfBufferArray / (3*columns) );
  
          Bitmap b = new Bitmap(columns , rows, PixelFormat.Format24bppRgb);
          BitmapData bmd = b.LockBits(new Rectangle(0, 0, columns , rows), ImageLockMode.ReadWrite, b.PixelFormat); 
  
              unsafe
              {
                  for (int j = 0; j &lt; rows; j++)
                  {                    
                      byte* row = (byte*)bmd.Scan0 + ((j * bmd.Stride) ); 
  
                      for (int i = 0; i &lt; columns*3; i+=3)
                      {                                                
                          if (position &lt; lengthOfBufferArray)
                          {                                                                         
  
                              try
                              {
                                  row[i+2] = bufferArray[position];
                                  position++;
                                  if (position &lt; lengthOfBufferArray)
                                  {
                                      row[i+1] = bufferArray[position];
                                      position++;
                                  }
                                  else
                                  {                                   
                                      break;                                       
                                  }
  
                                  if (position &lt; lengthOfBufferArray)
                                  {
                                      row[i] = bufferArray[position];
                                      position++;
                                  }
                                  else
                                  {                                       
                                      break;                               
                                  }
                              }
                              catch (Exception e)
                              {
                                  Console.WriteLine(e.ToString());
  
                              }
                          }
                      }
                  }
  
                  b.UnlockBits(bmd);
  
                  return b;
              } 
      }
  </code></pre>
  
  <p>And this is how i save the returned bitmap</p>
  
  <pre><code> b.Save(outputFilename, ImageFormat.Bmp);
  </code></pre>
  
  <p>When i have all FF hexadecimals in the bufferArray still the white pixels are not that white.</p>
  
  <p>And when i have random values in the bufferArray other colors also look like they are washed away. </p>
  
  <p>How can i make it save in the normal brightness level ?</p>