var
I, J : Integer; //с помошью них будем считать кол-во столбцов и строк и обращаться к ним
begin
stringGrid1.ColCount := VLMotionDetect1.MotionGrid.Cols; //создаем
stringGrid1.RowCount := VLMotionDetect1.MotionGrid.Rows; //соответствие
for I := 0 to StringGrid1.ColCount - 1 do
for J := 0 to StringGrid1.RowCount - 1 do
begin
stringGrid1.Cells[ I, J ] := IntToStr( VLMotionDetect1.Items[ I, J ] ); //заполняем StringGrid весовыми коэфициентами движения
end;
|