BodyTetrisWrapper.Program.makeBlockImage C# (CSharp) Method

makeBlockImage() public static method

public static makeBlockImage ( byte pixels, int w, int h, string Filename ) : void
pixels byte
w int
h int
Filename string
return void
        public static void makeBlockImage(byte[] pixels, int w, int h, string Filename)
        {
            SaveJPG(pixels, w, h, "block_images/" + Filename);
            FileStream stream = new FileStream("block_images_names/" + Filename, FileMode.Create);
            stream.Close();
        }