CipherLab 9400 Series User Manual page 193

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

SetPreviewState
Purpose
To set the preview settings.
Syntax
int SetPreviewState (CamState camInfo);
Parameters
camInfo
[in]
Example for C#
int b1 = 0;
Cipherlab.SystemAPI.Member.CamState camInfo =
new Cipherlab.SystemAPI.Member.CamState();
camInfo.PosX = 20;
camInfo.PosY = 85;
b1 = Cipherlab.SystemAPI.Member.SetPreviewState(ref camInfo);
Example for VB
Dim camInfo As New Member.CamState
camInfo.PosX = 20
camInfo.PosY = 85
Cipherlab.SystemAPI.Member.SetPreviewState(camInfo)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
Remarks
This function must be called before EnableCamera().
See Also
EnableCamera, EnablePreview
CamState
structure that stores the preview settings.
Call GetErrorCode() to find the error condition encountered:
1
Open Resource Fail
4
Parameter Error
Chapter 3
System API
185

Advertisement

Table of Contents
loading

Table of Contents