SetInternalDataType
Set the internal data type for all the matrix objects in the layer.
BOOL SetInternalDataType( UINT nType, DWORD dwFlags = OCD_RESET_VIEW | OCD_RESTORE )
TRUE for success, FALSE for failure
EX1
//Set the internal data type for all the matrix objects in the layer. void MatrixLayer_SetInternalDataType_Ex1() { MatrixPage mp = Project.MatrixPages(0); if(!mp) return; MatrixLayer ml(mp.GetName()); if( ml.SetInternalDataType(FSI_USHORT) ) // make a Matrix ushort and keep its data and show as data printf("Success to set internal data type!"); else printf("Fail to set internal data type!"); }
If matrix is already the correct internal type, this function will do nothing. If the matrix only has image without data,
bSaveData set to TRUE will convert the image into data so that HasData will become TRUE after this command.
MatrixLayer::GetInternalDataType
origin.h