Declaration: TSpecCollection.AddSpecOfPixel (ix, iy, it, cl: integer; capt, catstring: string; Spec: TDoubleArray): integer;
The function AddSpecOfPixel adds the spectrum defined by the parameter Spec, assuming that the spectrum is a pixel spectrum. The parameters ix and iy specify the pixel coordinates, the parameter it specifies the time slot. The parameter cl defines the class number of the spectrum.

The parameter capt contains the caption of the spectrum. The catstring parameter contains the user-defined categories (see the spectral collection data format for details on the format.

The function returns the index of the newly added spectrum.

Hint: In order to access the spectral collection currently loaded in the Spectral Collection Editor you can use the pre-declared global variable SCData.