CreateEmptyCube

Declaration: CreateEmptyCube(SizeX, SizeY, SizeL, SizeT: integer; LType: TLayerType; Author, SampleID: string): integer;
Creates an empty data cube. The size of the cube is determined by the parameters SizeX, SizeY, SizeL and SizeT. The parameter LType specifies the type of the generated layers. The parameters Author and SampleID define the name of the author and the sample name, respectively.

Please note that this function does not check whether the dataset which is loaded before the execution of the command has been stored. The current data are destroyed and replaced by an empty dataset without any confirmation.

The function returns the following error codes:

 0 ... everything is OK
-2 ... lateral sizes must be at least 2x2 pixels
-3 ... number of layers and timeslots must not be zero or negative