This event is generated just before an image is scanned with the scan device.
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, 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.