ImageMan ImTwain Control Version 8
PageScanned Event
See Also  Send comments on this topic.
EventType

Set to a value of 1 upon successful scanning of a page, set to a value of 2 when the TWAIN device has closed.

Status

Specifies if scanning completed successfully. A value of 0 or 6 indicates a sucessful scan, all other values indicate a TWAIN error occurred.

hDIB
If the EventType is equal to 1 and Status is equal to 0 or 6 then this parameter contains the handle to a DIB for the acquired image. This handle would generally be assigned to the ImageMan Image Control's hDIB property. It is the responsibility of the application to free the memory associated with this handle (this is done automatically by the image control).

Glossary Item Box

Description

Occurs when the TWAIN device has acquired an image and also when the device is closed.

Only occurs when scanning is initiated by the Scan Method.

Syntax

Visual Basic
Public Event PageScanned( _
   ByVal EventType As Long, _
   ByVal Status As Long, _
   ByVal hDIB As Long _
)

Parameters

EventType

Set to a value of 1 upon successful scanning of a page, set to a value of 2 when the TWAIN device has closed.

Status

Specifies if scanning completed successfully. A value of 0 or 6 indicates a sucessful scan, all other values indicate a TWAIN error occurred.

hDIB
If the EventType is equal to 1 and Status is equal to 0 or 6 then this parameter contains the handle to a DIB for the acquired image. This handle would generally be assigned to the ImageMan Image Control's hDIB property. It is the responsibility of the application to free the memory associated with this handle (this is done automatically by the image control).

See Also

© 2014 Data Techniques Inc. All Rights Reserved.