Returns or sets the pixel type of 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 TWICapPixelType PixelType { get; set; } |
| Visual Basic |
|---|
Public Property PixelType As TWICapPixelType Get Set |
Remarks
Using this property after calling OpenSource() method and before calling AcquireImage().
| Allowed Values | PixelType TWICapPixelType |
|---|---|
| 0 | BW |
| 1 | GRAY |
| 2 | RGB |
| 3 | PALETTE |
| 4 | CMY |
| 5 | CMYK |
| 6 | YUV |
| 7 | YUVK |
| 8 | CIEXYZ |
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. |