Sensoray 2224 Windows User Manual
Page 48
Start raw preview allows viewing the raw preview while streaming. It can be used with
S2226_StartRecord or S2226_StartCallback. It should not be used with the S2226_StartPreview
functions.
Use S2226_StopRawPreview to stop the independent preview stream. All streams must be stopped
before the input can be changed.
If the input was changed and S2226_StartRawPreview is still running, then the other S2226_Start
functions will fail until S2226_StopRawPreview is called.
Parameters
hwnd
handle to display video in (use NULL for pop-up window).
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_StopRawPreview(
HANDLE hdev
);
Stop a running raw preview window.
Parameters
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_Repaint(
HDC hdc,
HANDLE hdev
);
Only used for preview and when rendering to a non-NULL hwnd. Call this function in your OnPaint
routine. See demo application for example usage.
Parameters
hdc
48