This class provides data of 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 image bitcount. Scanning in 12 or 14 bit grayscale results in 16 bit grayscale. Scanning in 36 or 42 bit color results in 48 bit color.
 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.WPF.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.WPF.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 as these resolution properties.

See Also


                        
Scan Class | Scan Members
 
                 
        The ImageKit WPF  is created by  Newtone Corporation