title: How can i define a 8 bit grayscale image directly ?
body: <p>The following code is used to create a 8 bit bitmap</p>
  
  <pre><code>Bitmap b = new Bitmap(columns, rows, PixelFormat.Format8bppIndexed);
  BitmapData bmd = b.LockBits(new Rectangle(0, 0, columns, rows), ImageLockMode.ReadWrite, b.PixelFormat);
  </code></pre>
  
  <p>But when i save it it is saved as a 8 bit color bitmap. Is it possible to directly create a 8 bit grayscale bitmap without creating a 8 bit color bitmap and later having to convert it to a  grayscale ?</p>