Image Processing (2-D Arrays)

Hello,
I am looking to get my program to take in an image and then take the grey level (0 to 255) and put it into a 2-D array. The array size is set to 1024x1024. I am not entirely sure how to go about doing this, libraries, etc. Any help would be greatly appreciated.

Thank all.
Alright! Thanks!
Now this may sound like a dumb question but how to I get the gray level (I didn't see a method for that)? Is there an equation to use or did I miss something?
http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
I've not done it myself but this looks right ;)
Topic archived. No new replies allowed.