2.2.4.27.8 MatrixLayer::HasData

Description

Check if MatrixLayer has data that represent the image

Syntax

BOOL HasData( )

Parameters

Return

TRUE if matrix has data, return FALSE if matrix only has image but data not yet created

Examples

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");
}

Remark

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.

See Also

MatrixLayer::HasImage

Header to Include

origin.h