IImageScannerSourceConfiguration.Brightness Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the current brightness level for capturing image data from the scan source. On a new scan session, the value of this property is the DefaultBrightness property.
public:
property int Brightness { int get(); void set(int value); };
int Brightness();
void Brightness(int value);
public int Brightness { get; set; }
var int32 = iImageScannerSourceConfiguration.brightness;
iImageScannerSourceConfiguration.brightness = int32;
Public Property Brightness As Integer
Property Value
int
The brightness level.
Remarks
This property's value must be between MinBrightness and MaxBrightness, and is related to BrightnessStep with this equation:
Brightness = MinBrightness + (N*BrightnessStep)
where N is a positive integer smaller than or equal to (MaxBrightness - MinBrightness) / BrightnessStep.
Your app can return the brightness level to default by setting the value of this property to the DefaultBrightness property value. If the scanner doesn't allow brightness changes, MinBrightness, MaxBrightness and DefaultBrightness are set to the same value-oftentimes 0, the BrightnessStep is set to 0, and the app can't change the Brightness property to a different value other than DefaultBrightness.