Sensoray 2224 Windows User Manual
Page 66

int type,
HANDLE hdev
);
Sets the output control for the device for the composite outputs.
Parameters
type
0-scaled output off(raw preview may be used), 1-scaled output on (raw preview not
avaiiable).
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_save_rgb(
const char *fileName,
const unsigned char *rgb,
int width,
int height,
int type
);
This helper function does not involve the 2226 hardware. It is used in the snapshot demo program
to save bitmaps from frames grabbed via the raw callback mechanism.
Parameters
fileName
full path to the target file in ASCII format, no extension.
rgb
pointer to the image in RGB format.
width
width of the image
height
height of the image
type
file save type. 0—BMP, 1—PPM.
66