CogSurfaceFX Brightness Property Cognex VisionPro 9.5
Gets or sets the brightness percentage. The brightness percentage for flat areas of the output image. For CogImag8Grey 100% is equal to 255.

Namespace: Cognex.VisionPro.SurfaceFX
Assembly: Cognex.VisionPro.SurfaceFX (in Cognex.VisionPro.SurfaceFX.dll) Version: 69.0.0.0
Syntax

public double Brightness { get; set; }

Property Value

Type: Double
The default value is 50 percent.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Exceptions

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than zero or greater than 100.
ObjectDisposedException If the object has been disposed.
Remarks

the brightness controls the grey - level that represents flat surfaces. It is a percentage. The default value of 50 % tells SurfaceFX to generate flat surfaces with a grey - level that is half - way between the minimum possible grey - level(i.e.zero) and the maximum possible grey - level(i.e. 255 for an 8 - bit image).
See Also