Ejemplo n.º 1
0
 public void PopulateBITMAPINFOHEADER32(ref Win32.BITMAPINFOHEADER bmih)
 {
     bmih.Init();
     bmih.biPlanes    = 1;
     bmih.biBitCount  = 32;
     bmih.biHeight    = height;
     bmih.biWidth     = width;
     bmih.biSizeImage = (uint)(4 * width * height);
 }
Ejemplo n.º 2
0
 public void PopulateBITMAPINFOHEADER24(ref Win32.BITMAPINFOHEADER bmih)
 {
     bmih.Init();
     bmih.biPlanes   = 1;
     bmih.biBitCount = 24;
     bmih.biHeight   = height;
     //pad up width so that we end up with multiple of 4 bytes
     pitch            = width * 3;
     pitch            = (pitch + 3) & ~3;
     pitch_add        = pitch - width * 3;
     bmih.biWidth     = width;
     bmih.biSizeImage = (uint)(pitch * height);
 }