MatrixLayer::HasImage

Description

Check if MatrixLayer has associated image

Syntax

BOOL HasImage( )

Parameters

Return

TRUE if matrix has image

Examples

EX1

//Check if MatrixLayer has associated image to be used in View Image mode. 
void MatrixLayer_HasImage_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    if( ml.HasImage() )
        printf("Matrix has image\n");
    else
        printf("Matrix has No image\n");
}

Remark

Check if MatrixLayer has associated image to be used in View Image mode.

The matrix Image may not exist until user requests it with View : Image Mode

See Also

MatrixLayer::HasData

header to Include

origin.h