SetOption

Description

Sets an option for a camera device.

Applies to

Camera objects

Syntax

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.

Returns

Integer. Returns 1 for success, and one of the following negative values if an error occurs:

Usage

Use the SetOption function to set the value of a specific option.

Examples

Example 1

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)

See also