Sensoray 811 Windows SDK User Manual
Page 22

device id in system.
Returns
0 if success, negative if error.
MID811_API int S811_SnapshotToFile(
char *fileName,
int filetype,
int qual,
int devid
);
Takes a snapshot and saves it to a file. Please see S811_EnableSnapshots and
S811_SetColorspace.
Parameters
fileName
full path to the target file, no extension.
filetype
file type(s) to save to (MID811_FILE_JPEG, MID811_FILE_BMP, see mid811types.h).
Please note that jpegs are compressed on the host computer, not on the 811 card. BMPs
capture will be less CPU intensive.
qual
JPEG quality (25-100, higher value yields better quality and bigger files).
devid
device id in the system (use 0 for first channel with a single board installed).
Returns
Image size in bytes or a negative value in case of an error.
MID811_API int S811_SnapshotToFileW(
wchar_t *fileName,
int filetype,
int qual,
int devid
);
22