Are there any good tutorials on how to do this? I've searched alot, and i mean ALOT. I've only found others who asks the same question, not the answer. Please help me!
EDIT:
Okay, I think i've gotten more close. Although, my pics is black, ingame and outgame. Here's my code;
Code:
int pWidth = Screen.GetBounds(new Point(0, 0)).Width;
int pHeight = Screen.GetBounds(new Point(0, 0)).Height;
Bitmap b = new Bitmap(pWidth, pHeight, PixelFormat.Format32bppArgb);
BitmapData bd = b.LockBits(new Rectangle(0, 0, pWidth, pHeight),
ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
Gl.glReadPixels(0, 0, pWidth, pHeight, Gl.GL_BGRA_EXT, Gl.GL_UNSIGNED_BYTE, bd.Scan0);
b.UnlockBits(bd);
b.Save("data/" + textBox1.Text + "/" + DateTime.Now.Minute + DateTime.Now.Second + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg);