InvertedText event (ILEADRasterProcess)

Visual Basic Example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

void InvertedText (long hRgn, float fBoundingRectLeft, float fBoundingRectTop, float fBoundingRectWidth, float fBoundingRectHeight, long iWhiteCount, long iBlackCount);

Overview

Refer to Cleaning - up 1-Bit Images

Remarks

(Document/Medical) This event is triggered once for each area of inverted text that is detected, if the EnableDocCleanEvents property has been set to TRUE before calling the InvertedText method. Set the DocCleanSuccess property to SUCCESS_REMOVE to have the area inverted. Set the DocCleanSuccess property to SUCCESS_NOREMOVE to leave the area unchanged. Set the DocCleanSuccess property to 0 to abort. If the uFlags parameter of the InvertedText method is set to INVERTEDTEXT_IMAGE_UNCHANGED | INVERTEDTEXT _SINGLE_REGION, then the value of the DocCleanSuccess property affects only the internal single region that contains all the changes.

Note: hRgn is only valid during this event. To use the hRgn after the event has terminated, make a copy of it using the SetBitmapRgnHandle method.

See Also

Elements:

InvertedText method , EnableDocCleanEvents property

Topics:

Raster Images: Cleaning - up 1-Bit Images