BorderRemoveEvent event (Main Control)
Visual Basic
Example
Visual
C++ 4.0 example
Syntax void BorderRemoveEvent (OLE_HANDLE hRgn, long uBorderToRemove, float fBoundingRectLeft, float fBoundingRectTop, float fBoundingRectWidth, float fBoundingRectHeight);
Overview: Refer to Cleaning - up 1-Bit Images
Remarks
(Document/Medical) This event is triggered once for each border found by the BorderRemove method. It is triggered a maximum of four times for each call to the BorderRemove method. Set the DocCleanSuccess property to SUCCESS_REMOVE to have the border removed. Set the DocCleanSuccess property to SUCCESS_NOREMOVE to leave the border unchanged. Set the DocCleanSuccess property to 0 to abort. If the uFlags parameter of the BorderRemove method is set to BORDER_IMAGE_UNCHANGED and BORDER_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 SetRgnHandle method.
See Also
Elements: BorderRemove method, DocCleanSuccess property