title: display picture
body: <p>hi everybody
  i'm trying to get bmp file then display it and i should do this by get header information of bmp and load it pixel by pixel in to an array then set pixel to display bmp picture without using bitmap class.</p>
  
  <pre><code>enter code here
  enter code here  public void display(String filename)
      {
  
  
          FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);
          BinaryReader br = new BinaryReader(fs);
          string headerCode = br.ReadChar().ToString() + br.ReadChar().ToString();
          MessageBox.Show(headerCode);
          if (headerCode == "BM")
          {
              int bfSize = br.ReadInt32();
              int bfReserved1 = br.ReadInt16();
              int bfReserved2 = br.ReadInt16();
              int bfoffbits = br.ReadInt32();
              int biSize = br.ReadInt32();
              int biWidth = br.ReadInt32();
              int biHeight = br.ReadInt32();
              int biPlanes = br.ReadInt16();
              int biBitCount = br.ReadInt16();
              int biCompression = br.ReadInt32();
              int biSizeImage = br.ReadInt32();
              int biXPelsPerMeter = br.ReadInt32();
              int biYPelsPerMeter = br.ReadInt32();
              int biClrUsed = br.ReadInt32();
              int biClrImportant = br.ReadInt32();
              int rgbRed = 0;
              int rgbGreen = 0;
              int rgbBlue = 0;
              Bitmap bmp = new Bitmap(biWidth, biHeight);
               PictureBox1.Size = new System.Drawing.Size(biWidth, biHeight);
  
              try
              {
  
                  PictureBox1.Image = bmp; 
  </code></pre>
  
  <p>i should do this but no with bitmap class and buffer , ishould get the  header of bmp file and load it in the array then read the file to get the height and width and other information that need to display bmp pixel by oixel but without using bitmap class</p>