User`s guide

FUNCTIONS
SDK SECTION 11
Page 191
SaveAsTiffEx
unsigned int WINAPI SaveAsTiffEx(char* path, char* palette, int position, int typ, int mode)
Description
This function saves the last acquisition as a tiff file, which can be loaded into an imaging
package. This is an extended version of the
SaveAsTiff function. 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. The mode parameter
specifies the mode of output. Data can be output scaled from the min and max count
values across the entire range of values (mode 0) or can remain unchanged (mode 1).Of
course if the count value is higher or lower than the output data range then even in mode 1
data will be scaled.
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.
int mode: The output mode
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_ERROR_ACK
DRV_P1INVALID
DRV_P2INVALID
DRV_P3INVALID
DRV_P4INVALIDDRV_P5INVALID
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 validmode not valid
File too large to be generated in memory
See also
SaveAsSif SaveAsEDF SaveAsFITS SaveAsRaw SaveAsSPC SaveAsTiff SaveAsBmp