The class TFrm2DImg supports the management of the user interface of the 2D imager. Please note that you cannot create an instance of this class yourself (the class has no public Create method). In order to manipulate the parameters of the 2D imager you have first to call the function Img2DGui. This will display the user interface and create the instance Frm2DImg which is then globally available throughout a script.

The class TFrm2DImg provides the following properties and methods:




Hint: If you use the global instance Frm2DImg before you have called Img2DGui this will result in an error message ("Could not call proc at ....")

Example: The following code snippet creates the user interface of the 2D Imager and calls a few functions of the 2D Imager:
Img2DGui (0,0,0,0,true);       // initialize the 2D Imager

// ... now you can access the 2D Imager, for example:

Frm2DImg.ClearAnnotations (0); // clear the annotations of the main image

                               // display the spectrum at position [1,1]
Frm2DImg.DisplaySpectrum (1,1,1,1,0,0,0,0,true, false, '');

                               // set the color palette of the main window
Frm2DImg.AssignColPalFile (Rainbow, 0);