beautypg.com

Sensoray 812 Windows User Manual

Page 9

background image

Sets the video preview window

Parameters

hwnd

handle to window

devid

device id in the system (use 0 with a single board installed).

strmidx

channel index (0-7)

Returns

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

MID812_API int S812_SetVideoPosition(

int xpos,

int ypos,

int xsize,

int ysize,

int devid,

int strmidx

);

Sets the video position inside the window specified with S812_SetPreviewWindow. This function is
strictly optional. If this function is not called, the video will automatically occupy the entire
window.

Parameters

xpos

x position

ypos

y position

xsize

video width in the window

ysize

video height in the window

devid

device id in the system (use 0 with a single board installed).

strmidx

9