Obtains the value of a specific option for a camera device.
Camera objects
objectname.GetOption ( Opt )
Argument |
Description |
---|---|
objectname |
The name of the camera object that you want to inquire about |
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 Usage |
Integer. Returns the value of the option or 0 if the option is not supported on the device.
Use the GetOption function to obtain the value of a specific option. Camera options are settings available on various devices. Not all options are available on all devices. Most options are cached and used only when applicable. Some options, such as CamOptPowerUp, are acted on immediately.
The following table lists the available options and their settings. The third column in the table lists some of the devices that support each option. Note that support for devices is limited in this release, and not all listed devices are supported.
Option |
Setting |
Example of supported device |
---|---|---|
CamOptAEMetering! |
Automatic Exposure Metering points. Values are:
|
HP PhotoSmart VEO 130S |
CamOptBrightness! |
Brightness of the image. Values are:
|
Hitachi G1000 LifeView FlyCam CF |
CamOptCaptureFormat! |
Format of captured image. On some devices, JPEG is the only format supported. Values are:
|
|
CamOptCaptureMode! |
Capture mode. Values are:
|
|
CamOptColorMode! |
Color of the picture. Values are:
|
HP PhotoSmart VEO 130S |
CamOptContrast! |
Image contrast for adjacent areas of the image. The value is an integer in the range 0 to 1000. |
LifeView FlyCam CF |
CamOptFlash! |
Whether the flash should be fired when capturing the image.Values are:
|
LifeView FlyCam CF |
CamOptFlashDistance! |
The distance from the flash to the subject. Values are: Flash_50cm, Flash_100cm, Flash_150cm, or Flash_300cm |
LifeView FlyCam CF |
CamOptFlickerFrequency! |
Sets the flicker filter frequency. Values are:
|
LifeView FlyCam CF |
CamOptGamma! |
Amount of gamma correction applied to the luminance values of the picture. The value is an integer in the range 0 to 1000. |
|
CamOptHue! |
The quality of a color as determined by its dominant wavelength. The value is an integer in the range -180 to 180 with a default of 0. |
LifeView FlyCam CF |
CamOptLuminosity! |
Adjusts image to compensate for the amount of light emitted by the subject. The value is an integer in the range 0 to 1000. |
LifeView FlyCam CF |
CamOptMoonLight! |
Sets or clears night vision (moonlight) mode. Values are:
|
LifeView FlyCam CF |
CamOptPowerDown! |
Turns off the device. Set the value to 1 to turn off the device. |
HP PhotoSmart VEO 130S Hitachi G1000 |
CamOptPowerUp! |
Turns on the device. Set the value to 1 to turn on the device. |
Hitachi G1000 |
CamOptPreviewPosLeft! |
The left-side position of the preview area. The preview area’s size is fixed at 160 x 120 pixels. |
Hitachi G1000 |
CamOptPreviewPosTop! |
The top-side position of the preview area. The preview area’s size is fixed at 160 x 120 pixels. |
Hitachi G1000 |
CamOptQuality! |
Picture quality. This option determines the level of compression. The greater the compression, the lower the picture quality. Values are:
|
HP PhotoSmartVEO 130S |
CamOptSaturation! |
Amount of color saturation (relative purity of color). The value is an integer in the range 0 to 1000. |
LifeView FlyCam CF |
CamOptSharpen! |
Adjusts sharpness of the image. The value is an integer in the range 1 to 100. For example:
|
LifeView FlyCam CF |
CamOptTimeOut! |
Timeout in seconds for any capture process. Used by devices that can capture an image asynchronously to determine how long the capture function waits for a response. This value is ignored for synchronous devices. |
|
CamOptWhiteBalance! |
Adjusts the image to the current light conditions. Values are:
|
HP PhotoSmart VEO 130S LifeView FlyCam CF Hitachi G1000 |
The following statements get the value of the CamOptWhiteBalance option:
integer li_return li_return = g_myCamera.GetOption(CamOptWhiteBalance) if not li_return = 0 then sle_opt.text = "White Balance: " + string(li_return)
else sle_opt.text = "White Balance: Unsupported option." end if