Click or drag to resize

VideoGamma Property

Index into the Gammas array for the selected camera gamma.

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public short Gamma { get; set; }

Property Value

Type: Int16
Short integer index for the current camera gamma in the Gammas string array.

Return Value

Type: Int16
Index into the Gammas array for the selected camera gamma

Implements

IVideoGamma
Exceptions
ExceptionCondition
InvalidValueExceptionMust throw an exception if not valid.
PropertyNotImplementedExceptionMust throw an exception if gamma is not supported.
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks
Gamma can be used to adjust the gamma setting of the camera, if supported. There are two typical usage scenarios:
  • Discrete gamma video cameras will return a 0-based array of strings - Gammas, which correspond to different discrete gamma settings supported by the camera. Gamma must be set to an integer in this range. GammaMin and GammaMax must thrown an exception if this mode is used.
  • Adjustable gain video cameras - GammaMin and GammaMax return integers, which specify the valid range for Gamma.

The driver must default Gamma to a valid value.

See Also