Sets an option for a camera device.
Camera objects
Boolean objectname.SetOption ( Opt, iOptValue )
Argument |
Description |
---|---|
objectname |
The name of the camera object for which you want to set an option. |
Opt |
A value of the CameraOption enumerated variable that specifies the name of the option that you want to want to inquire about. For a list of options, see GetOption. |
iOptValue |
An integer that specifies the value to which you want to set the option. |
Integer. Returns 1 for success, and one of the following negative values if an error occurs:
Use the SetOption function to set the value of a specific option.
The following statements set the value of the CamOptWhiteBalance option to 3, which means fluorescent:
integer li_return li_return = g_myCamera.SetOption(CamOptWhiteBalance, 3)