Returns the pixel type of the current image. This is a runtime, read-only property.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public TWICapFilterType ImagePixelType { get; } |
| Visual Basic |
|---|
Public ReadOnly Property ImagePixelType As TWICapFilterType Get |
Remarks
| Values | Description |
|---|---|
| TWPT_BW(0) | Black and White |
| TWPT_GRAY(1) | Grayscaled |
| TWPT_RGB(2) | RGB |
ImagePixelType property, along with other properties about information of the current image, is valid only in OnPreTransfer and OnPostTransfer event.
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. |