Returns or sets the pixel flavor for acquired images. This is a runtime property.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public TWICapPixelFlavor PixelFlavor { get; set; } |
| Visual Basic |
|---|
Public Property PixelFlavor As TWICapPixelFlavor Get Set |
Remarks
Using this property after calling OpenSource() method and before calling AcquireImage().
The default value is 0. That is, the default value of PixelFlavor is Chocolate.
| Allowed Values | Description |
|---|---|
| 0 | Chocolate. Zero pixel represents darkest shade. |
| 1 | Vanilla. Zero pixel represents lightest shade. |
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |