ClearImgStack

Declaration: ClearImgStack(DefaultPhoto: integer): integer;
Clears the image stack and loads the photo specified by the parameter DefaultPhoto as the background photo. This parameter references the list of calibrated photos. Setting it to a zero value creates a white background "photo".

The function returns the following error codes:

 0 ... everything is OK
-1 ... DefaultPhoto out of range
-2 ... background photo not found