Hi,
Matrix derived from matrix and matrix derived from matrixbase, so can access Matrix object by mat[row][col], for example:
void MatrixSample()
{
MatrixLayer matLayer = Project.ActiveLayer();
if( matLayer )
{
Matrix matData(matLayer);
for(int nRow = 0; nRow < matData.GetNumRows(); nRow++)
{
for(int nCol = 0; nCol < matData.GetNumCols(); nCol++)
{
printf("%f\t", matData[nRow][nCol]);
}
printf("\n");
}
}
}
Iris
Edited by - iris_bai on 06/05/2008 11:43:40 PM