beautypg.com

Sensoray 2224 Windows User Manual

Page 62

background image

HANDLE hdev

);

Takes a snapshot and save to file in filename (unicode version)

Parameters

filename

fully qualified unicode filename with path (without extension, extension will be added by the

SDK).

filetype

file type to save. MID2226_FILE_JPEG and/or MID2226_FILE_BMP.

freezetime

time in milli-seconds to freeze the image( freezing is done on the video output channels of

the 2226).

wait

wait = 1 will wait if operations pending(board is busy), wait = 0 will return err code if board

busy.

unused

Unused. For future possible use. Value wil be ignore.

hdev

handle to device (obtained from S2226_OpenBoard).

Returns

0 on success, negative value if error (see mid2226types.h for error codes list).

MID2226_API int S2226_SnapshotToMem(

BYTE *image,

int size,

int freezetime,

int wait,

HANDLE hdev

);

Get snapshot to memory function. Retrieves processed image into memery. Image is converted
to RGB (1 byte per color) and the fields are merged using the algorithm set by
S2226_SetMergeMethod.

Parameters

62

This manual is related to the following products: