Get the data (gray scale levels) of a bitmap graphic object.
BOOL GetImageData( LPCSTR lpcszImageName, matrixbase & mat, int nGrayScaleBits = 8 )
TRUE if the data was obtained else FALSE.
EX1
//assume a image object name "BMP" in the layet void Layer_GetImageData_ex1() { Layer ly = Project.ActiveLayer(); if( !ly.IsValid() ) return; string strName = "BMP"; matrix<BYTE> mm; if ( ly.GetImageData(strName, mm) ) { printf("GetNumRows() = %d\n", mm.GetNumRows()); printf("GetNumCols() = %d\n", mm.GetNumCols()); } }
origin.h