BodyTetrisWrapper.Program.SaveWholePicture C# (CSharp) Method

SaveWholePicture() public static method

public static SaveWholePicture ( IntPtr ptr ) : int
ptr System.IntPtr
return int
        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;
        }