beautypg.com

Sensoray 2224 Windows User Manual

Page 67

background image

MID2226_API int S2226_save_rgbW(

const wchar_t *fileName,

const unsigned char *rgb,

int width,

int height,

int type

);

Unicode wide-char version of S2226_save_rgb.

Parameters

fileName

full path to the target file in Unicode 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.

Returns

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

MID2226_API int S2226_uyvy_to_rgb(

const unsigned char *uyvy,

unsigned char *rgb,

int width,

int height

);

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. The frame captured via the

67

This manual is related to the following products: