private int GetNumberOfPixels(pixel[][] array)
 {
     return array.Length * array[0].Length;
 }
        private pixel[][] GenerateImageData()
        {
            int rows = 4;
            int columns = 4;
            pixel[][] data = new pixel[rows][];

            for (int i = 0; i < rows; i++)
            {
                data[i] = new pixel[columns];
                for (int j = 0; j < columns; j++)
                {
                    double x = 0.5;
                    double y = 0.5;
                    double temp = 0.5;
                    data[i][j] = new pixel(x, y, temp);
                }
            }

            return data;
        }