This method retrieves the bit depth supported by the scan device.

[Visual Basic] Public Function GetBitDepth() As Integer()
[C#] public int[] GetBitDepth();

Return Value

An array containing the bit depths supported by the scan device (Returns null[C#] or Nothing[VB.NET] if unsuccessful).

Explanation

The GetBitDepth method retrieves the bit depth supported by the scan device. To retrieve the bit depth, the PixelType and DataSourceName property must be set. If the DataSourceName property is blank, then prior to executing this method, please execute the SelectDataSource method. (Note: If the OpenDataSource method has been executed then the DataSourceName is disabled and the opened scan device will be used). The supported bit depth retrieved by the GetBitDepth method depends on the value set in the PixelType property. Therefore the PixelType property must also be set. Please set the values supported by the scan device into the PixelType property. Likewise, depending on the type of transfer method that has been set (memory transfer or native transfer) the possible compression methods may be different. You should therefore set the Transfer property value prior to retrieving the possible compression methods. 

Prior to executing the GetBitDepth method, you must execute the Initialize method.

If the OpenDataSource method is executed prior to the GetBitDepth method, then while the scan device is open, other applications can not use that scan device and it becomes the exclusive datasource for this execution.

See Also

Scan Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation