User`s guide
FUNCTIONS
SDK SECTION 11
Page 190
SaveAsSPC
unsigned int WINAPI SaveAsSPC (char* path)
Description
This function saves the last acquisition in the GRAMS .spc file format
Parameters
char* path: the filename to save too.
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_ERROR_ACK
DRV_P1INVALID
DRV_ERROR_PAGELOCK
Data successfully saved.
System not initialized.
Acquisition in progress.
Unable to communicate with card.
Path invalid.
File too large to be generated in memory.
See also
SaveAsSif SaveAsEDF SaveAsFITS SaveAsRaw SaveAsTiff SaveAsBmp
SaveAsTiff
unsigned int WINAPI SaveAsTiff(char* path, char* palette, int position, int typ)
Description
This function saves the last acquisition as a tiff file, which can be loaded into an imaging
package. The palette parameter specifies the location of a .PAL file, which describes the
colors to use in the tiff. This file consists of 256 lines of ASCII text; each line containing
three numbers separated by spaces indicating the red, green and blue component of the
respective color value.
The parameter position can be changed to export different scans in a kinetic series. If the
acquisition is any other mode, position should be set to 1. The parameter typ can be set
to 0, 1 or 2 which correspond to 8-bit, 16-bit and color, respectively
Parameters
char* path: The filename of the tiff.
char* palette: The filename of a palette file (.PAL) for applying color to the tiff.
int position: The number in the series, should be 1 for a single scan.
int typ: The type of tiff file to create.
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_ERROR_ACK
DRV_P1INVALID
DRV_P2INVALID
DRV_P3INVALID
DRV_P4INVALID
DRV_ERROR_PAGELOCK
Data successfully saved as tiff.
System not initialized.
Acquisition in progress.
Unable to communicate with card.
Path invalid.
Invalid palette file
position out of range
type not valid
File too large to be generated in memory.
See also
SaveAsSif SaveAsEDF SaveAsFITS SaveAsRaw SaveAsSPC SaveAsBmp
SaveAsTiffEx