SetViewImage
set matrix view mode to image or data mode
BOOL SetViewImage( BOOL bSetViewImage = TRUE, BOOL bAllObjs = TRUE, int nImgIndex = 0, int nOption = -1 )
TRUE for success, FALSE for failure
EX1
//set matrix view mode to image. void MatrixLayer_SetViewImage_Ex1() { MatrixLayer ml = Project.ActiveLayer(); if( !ml ) return; //should make sure matrix layer's data type is double //otherwise can not use Matrix mat(ml); ml.SetInternalDataType(FSI_DOUBLE); Matrix mat(ml); mat.SetSize(32,32); mat = 20; if( ml.SetViewImage(TRUE) ) // set view mode to image for all objects printf("Success to set matrix view mode!"); else printf("Fail to set matrix view mode!"); }
origin.h