OnBorderRemove event (Main Control)
Builder Syntax: |
void __fastcall OnBorderRemove (System::TObject* Sender, HRGN hBorderRgn, int uBorderToRemove, int nBoundingRectLeft, int nBoundingRectTop, int nBoundingRectWidth, int nBoundingRectHeight |
Delphi Syntax: |
procedure OnBorderRemove (Sender: TObject; hBorderRgn : HRGN; uBorderToRemove, nBoundingRectLeft, nBoundingRectTop, nBoundingRectWidth, nBoundingRectHeight: LongInt) of Object; |
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: |
hBorderRgn is only valid during this event. To use the hBorderRgn after the event has terminated, make a copy of it using the SetRgnHandle method. |
See Also
Elements: |
|
Topics: |