public static int SaveWholePicture(IntPtr ptr)
{
int w = 640; int h = 480;
byte[] pixels = new byte[w * h * 3];
Marshal.Copy(ptr, pixels, 0, w * h * 3);
string Filename = /*Logger.GetDateTimeString() +*/ " " + GameID + " " + numPhotos + ".jpg";
SaveJPG(pixels, w, h, "whole_images/" + Filename);
//TODO save full picture
return 0;
}