Drawing the content of an array on the screen

Hi everyone,

I have a 2 dimension array which include the (x,y) which is the coordinate of shape (each cell of array have a color of the point). For example: double image[600][800]
Now I want to put these pixels on the screen by opengl command.but I don’t have any idea how to do this.
Is there anybody who be able to help me?

You can do it simply with legacy OpenGL using the glDrawPixels command: http://www.opengl.org/sdk/docs/man/xhtml/glDrawPixels.xml