OnLineRemove event (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

void __fastcall OnLineRemove (System::TObject* Sender, int nStartRow, int nStartCol, int nLength, HRGN hRgnLine);

Delphi Syntax

procedure OnLineRemove (Sender : TObject;nStartRow, nStartCol, nLength: longint;hRgnLine : HRGN);

Overview

Refer to Cleaning Up 1-Bit Images

Remarks

(Document/Medical)This event is triggered for each line found by the LineRemove method. Set the DocCleanSuccess property to SUCCESS_REMOVE to have the line removed. Set the DocCleanSuccess property to SUCCESS_NOREMOVE to leave the line unchanged. Set the DocCleanSuccess property to 0 to abort. If the uFlags parameter of the LineRemove method is set to LINE_IMAGE_UNCHANGED | LINE_SINGLE_REGION, then the value of the DocCleanSuccess property affects only the internal single region that contains all changes.

Note:

hRgnLine is only valid during this event. To use the hRgnLine after the event has terminated, make a copy of it using the SetRgnHandle method.

See Also

Elements:

LineRemove method

Topics:

Raster Images: Cleaning - up 1-Bit Images