IVideoGamma Property

Index into the Gammas array for the selected camera gamma.

Definition

Namespace: ASCOM.Common.DeviceInterfaces
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
short Gamma { get; set; }

Property Value

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

Return Value

Int16
Index into the Gammas array for the selected camera gamma

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.

Exceptions

NotImplementedExceptionMust throw an exception if Gamma is not supported.
InvalidValueExceptionMust throw an exception if not valid.
NotConnectedExceptionWhen Connected is False.
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. Include sufficient detail in the message text to enable the issue to be accurately diagnosed by someone other than yourself.

Version Information

.NET Standard

Supported in: 2.0

See Also