Share via


ImageScannerFlatbedConfiguration.Contrast Property

Definition

Sets or gets the current contrast level for capturing image data from the scan source. At the beginning of a new scan session this property is set to the DefaultContrast property.

public:
 property int Contrast { int get(); void set(int value); };
int Contrast();

void Contrast(int value);
public int Contrast { get; set; }
var int32 = imageScannerFlatbedConfiguration.contrast;
imageScannerFlatbedConfiguration.contrast = int32;
Public Property Contrast As Integer

Property Value

Int32

int

The contrast level.

Implements

Remarks

Your app can set the value of this property to any Int32 value between the MinContrast and MaxContrast values, and also relates to the ContrastStep value with this equation:

Contrast = MinContrast + (N * ContrastStep)

where N is a positive integer smaller than or equal to (MaxContrast - MinContrast) / ContrastStep.

The app can return the contrast level to default by setting the value of this property to DefaultContrast.

If the scanner doesn't allow contrast adjustments, MinContrast, MaxContrast and DefaultContrast are set to the same value-oftentimes 0, the ContrastStep value is 0, and the app can't set the Contrast property to a value other than DefaultContrast.

Applies to