HasData
Check if MatrixLayer has data that represent the image
BOOL HasData( )
TRUE if matrix has data, return FALSE if matrix only has image but data not yet created
EX1
//Check if MatrixLayer has data that represent the image one sees in the View Image mode. void MatrixLayer_HasData_Ex1() { MatrixPage mp = Project.MatrixPages(0); if(!mp) return; MatrixLayer ml(mp.GetName()); if( ml.HasData() ) printf("Matrix has Data\n"); else printf("Matrix has No Data\n"); }
Check if MatrixLayer has data that represent the image one sees in the View Image mode.
An image can be loaded into a MatrixLayer and viewed as an image, and the associated matrix data is not constructed until needed (View : Data Mode), to minimize memory consumption.
MatrixLayer::HasImage
origin.h