//--------------------------------------------------------------------------------
void __fastcall TForm1::LeerImagenes()
{
TPicture *picThis = new TPicture;
String strTemp="c:\\foto.bmp";
picThis->LoadFromFile(strTemp);
StringGrid1->Objects[0][0]=(TObject*) picThis->Graphic;
}
//--------------------------------------------------------------------------------
void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, int ACol,
int ARow, TRect &Rect, TGridDrawState State)
{
if(StringGrid1->Objects[ACol][ARow]!=0){
StringGrid1->Canvas->Draw(Rect.Left+0,
Rect.Top+0,(Graphics::TGraphic*)
StringGrid1->Objects[ACol][ARow]);
}
}
//--------------------------------------------------------------------------------