Sensoray 812 Windows User Manual
Page 18

MID812_API int S812_SnapshotToFileW(
const wchar_t *filename,
int filetype,
int qual,
int devid,
int strmidx
);
Takes a snapshot and save to file in filename (unicode version). Same as S812_SnapshotToFlie but
with unicode filename parameter.
MID812_API int S812_GetFrame(
long bufsize,
unsigned char *pdata,
BITMAPINFOHEADER *pBMI,
int devid,
int strmidx
);
Get snapshot to memory function. Retrieves processed image into memery. This function only
applies when streaming video using S812_StartPreview, S812_StartRecord or
S812_StartPreviewAndRecord. If frequent frame capture is required, it is recommended to use the
callback functions.
Parameters
bufsize
allocated size of pdata
pdata
buffer to hold frame
pBMI
pointer to bitmap info. Note: some fields may not be populated.
devid
device id in the system (use 0 with a single board installed).
strmidx
channel index (0-7)
Returns
18