OnISISPage event (ISIS Control)

C++ Builder 4.0 example

Delphi example

 

Builder Syntax

TISISPageEvent OnISISPage

 

typedef void __fastcall (__closure *TISISPageEvent)(System::TObject* Sender, int nPage, System::AnsiString FileName);

Delphi Syntax

OnISISPage : TISISPageEvent

 

Type TISISPageEvent = procedure (Sender: TObject; nPage : Integer; FileName : String) of object;

Overview

Refer to Using ISIS to Scan Images

Remarks

(Document/Medical) OnISISPage event is called after each page is acquired by the ISISAcquireMulti method.

You must set the EnableISISEvent property to True, before calling ISISAcquireMulti, in order to generate OnISISPage events.

In the OnISISPage event, the Bitmap property will hold the current page. You can copy this to a Main Control for further processing, saving, etc.

To handle the scanned pages in the OnISISPage event, you can copy the image to a Main Control for processing

ex.

Lead1.Bitmap = LeadIsis1.Bitmap;

Alternatively, to avoid a copy, set the Main Control's RefBitmap property to True before assigning the ISIS Control's Bitmap to the Main Control. For example:

Lead1.RefBitmap = True;
Lead1.Bitmap = LeadIsis1.Bitmap;
Lead1.RefBitmap = False;

See Also

Elements:

ISISAcquireMulti method, EnableISISEvent property

Topics:

Raster Images: Scanning Images using ISIS