title: Creating Bitmap Object from raw bytes
body: <p>I am trying to create a bitmap object from raw bytes, my <code>PixelFormat</code> is <code>RGB</code> with 8 bits per sample, which is 3 bytes per pixel. now for this my stide will be 3 times the width.</p>
  
  <p>But <code>Bitmap</code> class is always looking for multiplier of 4 for stride value. Please help me how to resolve this issues.  if i give multiplier of 4 image is not coming properly.</p>
  
  <pre><code>Bitmap im = new Bitmap(MyOBJ.PixelData.Columns, MyOBJ.PixelData.Rows, (MyOBJ.PixelData.Columns*3),
  System.Drawing.Imaging.PixelFormat.Format24bppRgb, Marshal.UnsafeAddrOfPinnedArrayElement(images[imageIndex], 0));
  </code></pre>