Find matrix indecies from X Y
BOOL XYtoColRow( double * pxy, UINT * pnCol, UINT * pnRow )
FALSE if x y outside of the matrix XY area.
EX1
void ExportMultiFrame_ex(double x, double y) { MatrixLayer ml = Project.ActiveLayer(); if(!ml) return; double xy[2]; xy[0] = x; xy[1] = y; UINT nCol, nRow; if( ml.XYtoColRow(xy, &nCol, &nRow) ) printf("nCol = %d, nRow = %d\n", nCol, nRow); }
origin.h