This property sets the type of image scanned. This property is only enabled when using a custom-built user interface (UiMode=2).

[Visual Basic]   imagekitcontrolname.Scan.PixelType[ = ScanPixelTypeConstants ]
[Visual C++]     [ long = ]imagekitcontrolname.GetScan().GetPixelType()
                       imagekitcontrolname
.GetScan().SetPixelType(long Val)
[VB.NET]   imagekitcontrolname.Scan.PixelType[ = ImageKit9(A)Lib.ScanPixelTypeConstants ]
[C#.NET]   imagekitcontrolname.Scan.PixelType[ = ImageKit9(A)Lib.ScanPixelTypeConstants ]

* ImageKit9ALib refers to the ANSI version, ImageKit9Lib refers to the Unicode version.

Property Value

Value Explanation
0 Black and White (1bit)
1 Grayscale (4bit, 8bit, 12bit, 14bit, or 16bit)
2 RGB color (24bit, 36bit, 42bit, or 48bit). Default
3 Palette color (4bit, 8bit)
1000 Automatically detects whether scan is black & white or color (1bit or 24bit)
1001 Black & white and grayscale (1bit and 8bit)
1002 Black & white  and RGB color (1bit and 24bit)

The following constants can be used: (ikScanPixelBW = 0, ikScanPixelGray = 1, ikScanPixelRGB = 2, ikScanPixelPalette = 3, ikScanPixelAutomation = 1000, ikScanPixelGrayAndBW = 1001, ikScanPixelRGBAndBW = 1002).

Explanation

The PixelType property sets the type of image scanned. The default value is 2 (RGB color). This property is enabled when the UiMode is 2 (ikScanNONUI). This property is disabled for digital cameras and scanners that do not support this function. The possible setting values supported by a scan device can be retrieved using the GetCapEnum or theGetCapEnumVariant method.

The value 1000(ikScanPixelAutomation) is enabled for certain Panasonic scanners (memory transfer uncompressed only) or for certain Canon DR scanners, Epson scanners, and PFU scanners. 1001 (ikScanPixelGrayAndBW), and 1002 (ikScanPixelRGBAndBW) are enabled for certain Canon DR scanners, Panasonic scanners (memory transfer uncompressed only), Epson, or PFU scanners.

To check whether or not 1000(ikScanPixelAutomation), 1001 (ikScanPixelGrayAndBW), and 1002 (ikScanPixelRGBAndBW) are supported by your scanner, execute the IsCapSupported or the IsCapSupportedVariant method.

Setting this value

  This value can be set at runtime.

Retrieving this value

  This value can be retrieved at runtime.

[Differences from the ImageKit7 ActiveX]

Multi-stream scanning is now possible.

[Differences from the ImageKit8 ActiveX]

Supports Epson scan driver double image output (multi-stream).

 

The ImageKit9 ActiveX is a product created by Newtone Corporation