how can i make 400x400 dimension array. below is my code and the result is in one dimension(16000x1). i'm using C++ Builder.
Code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int DataWidth = Image1->Picture->Width;
int DataHeight = Image1->Picture->Height;
for (int y=0;y<DataHeight;y++)
for (int x=0;x<DataWidth;x++)
Data[y][x] = (Byte)Image1->Canvas->Pixels[x][y];
TStringList*show = new TStringList;
for (int j=0;j<400;j++)
for (int i=0;i<400;i++)
{
show->Add(AnsiString(Data[i][j]));
}
show->SaveToFile("Luthor.dat");
delete show;
}