SetSpecOfPixel

Declaration: TSpCollItem.SetSpecOfPixel (ix, iy, it, cl: integer; capt, catstring: string; Spec: TDoubleArray);
The function SetSpecOfPixel sets all important properties of a pixel spectrum at once. The CItemType property is set to ciPixel.

The spectrum is defined by the parameter Spec. The length of the spectral information (see SpecLength) is automatically set to the length of the Spec array. The parameters ix and iy specify the center of the circular area, the parameter it specifies the time slot. The parameter cl specifies 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.