This method starts the TWAIN process.

[C++Builder]   [ bool = ]imagekitcontrolname->Scan->Initialize(short MajorNum, short MinorNum, const UnicodeString VersionInfo, const UnicodeString Manufacturer, const UnicodeString ProductFamily, const UnicodeString ProductName)
[Delphi]   [ Boolean = ]imagekitcontrolname.Scan.Initialize(MajorNum, MinorNum: Smallint; const VersionInfo, Manufacturer, ProductFamily, ProductName: string)

Parameters

Name Explanation
MajorNum The major version number of the application (If the version is 1.00, then this value will be 1)
MinorNum The minor version number of the application (If the version is 1.00, then this value will be 0)
VersionInfo The application version information (up to 32 bytes)
Manufacturer The name of the manufacturer of the application (up to 32 bytes)
ProductFamily The application's product family name (up to 32 bytes)
ProductName The application's product name (up to 32 bytes)

Return Value

Returns True when successful, returns False when not successful.

Explanation

The Initialize method starts the TWAIN process. When using TWAIN functions, the Initialize method must be executed. MajorNum, MinorNum, VersionInfo, Manufacturer, ProductFamily, and ProductName parameters are used the notify TWAIN of various information about the application.

The Initialize method corresponds to the Scan Control's ScanInitialize method in earlier versions of the ImageKit.

Difference between the ImageKit7/8/9/10

The hWnd parameter is no longer needed.
In C++Builder, the VersionInfo, Manufacturer, ProductFamily, and ProductName parameters have changed to UnicodeString type.
In Delphi, the VersionInfo, Manufacturer, ProductFamily, and ProductName parameters have changed to string type.

 

The ImageKit10 VCL is a product created by Newtone Corporation