This event is generated just before an image is scanned with the scan device.

[Visual Basic] Public Event BeforeScan As BeforeScanEventHandler
[C#] public event BeforeScanEventHandler BeforeScan;

Event Data

The event handler receives arguments of type  BeforeScanEventArgs

Explanation

The BeforeScan event is generated just before an image is scanned with the scan device. Information about the actual image data transfered in this event can be referenced through the BeforeScanEventArgs arguments.

Regarding properties of the BeforeScanEventArgs class:

When the  Scan.PaperSize property is set to UndefinedSize (or values of 1000 or more), the values for the Width and Height properties of this class may become -1 in some cases. It is also possible that the values of the Width and Height properties become larger than the actual size of the document plate. Scan.PixelType property is set to Automation the BitDepth and PixelType values may be different from the actual image.

To cancel, set the Scan.Cancel property to True within this event.

See Also

ImageKit Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation