Copy3DLayerToMatrix

Declaration: Copy3DLayerToMatrix(InMat: TDouble3DArray; Layer: integer; var TargetMat: TDouble2DArray): integer;
Copies the layer of the three dimensional open array InMat into the matrix TargetMat. The source layer is specified by the property Layer (0-based !). The function returns the following error codes:

 0 ... everything is OK
-1 ... InMat and TargetMat do not match
-2 ... invalid Layer index