This class exposes properties for the BeforeScan event.

[Visual Basic] Public Class BeforeScanEventArgs Inherits System.EventArgs
[C#] public class BeforeScanEventArgsFSystem.EventArgs

Explanation

Property Type Explanation
 BitDepth [Visual Basic] Integer
[C#] int
Retrieves the number of bits per pixel. Note: 12 and 14 grayscale will be resolved to 16 bits; 36 and 42 bit color will be resolved to 48 bits.
 Cancel [Visual Basic] Boolean
[C#] bool
Sets whether or not the scan process is canceled. By setting this property to True, the process can be canceled.
 Compression Newtone.ImageKit.ScanCompression Sets the compression method used when an image is transferred via memory
 Height [Visual Basic] Integer
[C#] int
The height of the image that will be transferred in pixels
 ImageNumber [Visual Basic] Integer
[C#] int
Refers to the number of images that have been scanned 
 PixelType Newtone.ImageKit.ScanPixelType Sets the type of image scanned 
 Width [Visual Basic] Integer
[C#] int
The width of the image that will be transferred in pixels 
 XResolution [Visual Basic] Single
[C#] float
Sets the horizontal scan resolution *1
 YResolution [Visual Basic] Single
[C#] float
Sets the vertical scan resolution *1

*1

Although the TWAIN specifications allow scan units to be inches or centimeters, depending on the datasource (scan device) the scan units settings are ignored and DPI is used. Furthermore, if scan units are set to pixels, there are cases where the datasource will return a value of 1 in these resolution properties.

See Also

ImageKit Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation