When I am trying to draw the bitmap Which I received from the server , three same images are displaying starting from the lower left to lower right i.e upto some 200 lines height. It is showing the same Image three times of width 150 in the lower part of the window. I am using glDrawPixels command to draw the bitmap. Can u pls. answer me if anybody knows the solution.Even I don’t know the bitmap width and height.Just I am trying to draw which I received from the server.
What do you mean you dont know the width and height of the bitmap and the bitmap comes without an header?
Anyhow you cant display a image if you dont know its dimension.
You could however calculate the dimension if you know that the image a.) is always square or b.) always has the same fixed aspect ratio and bitdepth.