The method LoadBinary loads the entire data matrix (which has been previously stored by the method SaveBinary) from the file FName. The matrix is resized accordingly.
The function returns the following error codes:
0 ... everything is OK
-1 ... unexpected type of variable
-2 ... binary matrix file is not 2D (3D) matrix
-3 ... not enough memory, matrix is too big
-5 ... file FName does not exist
Hint:
The method LoadBinary triggers the OnPercentDone event to allow implementing a progress indicator when working with large files.