Share via


CheckScanner.Contrast Property

2/27/2008

Gets or sets the contrast to adjust the darkness of the image.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Overridable Property Contrast As Integer
public virtual int Contrast { get; set; }
public:
virtual property int Contrast {
    int get ();
    void set (int value);
}
/** @property */
public int get_Contrast ()

/** @property */
public void set_Contrast (int value)
public function get Contrast () : int

public function set Contrast (value : int)

Remarks

Contrast is valid only if the CapContrast property is true.

A value of 0 sets or indicates that the device generates the lightest image possible. A value of 100 sets or indicates that the device generates the darkest image possible. All values between 0 and 100 produce images with varying degrees of darkness. A value of 50 should produce an image that is the optimal brightness for the best image under typical circumstances.

If the CapAutoContrast property is true then Contrast can be set to AutomaticContrast to allow the device to automatically adjust the darkness of the image based on sensing of the paper to produce the optimal brightness for the best image under usual circumstances.

If CapAutoContrast is false, trying to set this property to AutomaticConstrast is illegal.

If CapAutoContrast is true, Contrast is initialized to AutomaticContrast when the device is enabled. If CapAutoContrast is false, Contrast is initialized either to 50 or to a user-configured value when the device is enabled.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

CheckScanner Class
CheckScanner Members
Microsoft.PointOfService Namespace
CheckScanner.CapAutoContrast Property
CheckScanner.CapContrast Property
CheckScanner.AutomaticContrast Field