Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

correction for the code

Status
Not open for further replies.

julianluthor

Programmer
Nov 3, 2003
18
MY

correction for the code posted earlier..

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*papar = new TStringList;
for (int j=0;j<400;j++)
for (int i=0;i<400;i++)
{
papar->Add(AnsiString(Data[j]));
}
papar->SaveToFile(&quot;Luthor.dat&quot;);
delete papar;


}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top