UpdateSegmentData method (Mixed Raster Content Control)

C++ Builder Example

Delphi Example

 

Builder Syntax

int __fastcall UpdateSegmentData (int nSegId, int SegmentLeft, int SegmentTop, int SegmentRight, int SegmentBottom, int nType, unsigned crTextForeColor, unsigned crTextBackColor, bool bVerifyUpdate);

Delphi Syntax

Function UpdateSegmentData (nSegId: Integer; SegmentLeft: Integer; SegmentTop: Integer; SegmentRight: Integer; SegmentBottom: Integer; nType: Integer; crTextForeColor: TColorRef; crTextBackColor: TColorRef; bVerifyUpdate: Boolean): Integer;

Overview

Refer to Working with MRC Bitmap.

Remarks

Updates the segment information. The LEADTOOLS engine will update the segments using the new segment data passed to this method. This process may create or delete segments.

With auto segmentation, the user can enumerate all segments using the EnumSegments method to get segment IDs and segment information.

The method will return an error if the updated segment exceeds its stripe boundaries. The method will update the segments so they remain within the bitmap width and height.

This meathod is valid for segments generated through the auto-segmentation and manual segmentation process.

In the manual segmentation mode, the user is free to update the segments, and LEAD engine will not delete or create segments.

bVerifyUpdate parameter effects only in the auto segmentation process

See Also

Elements

StripeMaxHeight property, AutoSegment method, DeleteSegment method, EnumSegments method

Topics

MRC Bitmap Functions: Manipulating Segments