CopyRect
Copy all matrix objects data inside ROI
int CopyRect( MatrixLayer & matlayDest, const ROIInfo * proiInfo, DWORD dwCntrl = 0 )
0 if success
EX1
void CopyRect_ex() { MatrixLayer ml = Project.ActiveLayer(); //get roi on matrix layer ROIObject roi; roi = GetROI(&ml); RECT rr; if (roi && roi.GetRect(&rr) == 0) { ROIInfo info; info.pRect = &rr; info.uid = roi.GetUID(TRUE); //crop ml ml.CopyRect(NULL, &info); } }
origin.h