BodyTetrisWrapper.Program.makeFullImage C# (CSharp) Method

makeFullImage() public static method

public static makeFullImage ( byte pixels, int w, int h, string Filename ) : void
pixels byte
w int
h int
Filename string
return void
        public static void makeFullImage(byte[] pixels, int w, int h, string Filename)
        {
            //puts file in /images/ directory
            //puts empty file in /images_names/ directory.
            SaveJPG(pixels, w, h, "full_images/"+Filename);
            FileStream stream = new FileStream("full_images_names/" + Filename, FileMode.Create);
            stream.Close();
        }