Bitmaps Drawing

When I am trying to draw the bitmaps it is coming like tiles in the lower part of the window.I am using glDrawPixles() for drawing. When I am using GL_RGB as type I am getting three bitmaps in tiles that is also in upto some height.When I am using GL_LUMINANCE it is coming correctly but coming in black and white instead of colors. Can anyone have any idea about this.Do this help for me

You should properly set the format and type in the glDrawPixels function so they match the bitmap you want to draw.