Example and Summary

A scenario for using the above functions in order to save a page as MRC or PDF is as follows:

1.

Start up the segmentation process by calling LSegment::MrcStartBitmapSegmentation.

2.

Segment the page by calling LSegment::MrcSegmentBitmapExt.

3.

Change some properties of the segments by calling LSegment::MrcSetSegmentData and LSegment::MrcEnumSegments.

4.

Delete some segments by calling LSegment::MrcDeleteSegment and LSegment::MrcEnumSegments.

5.

Combine segments by calling LSegment::MrcCombineSegments and LSegment::MrcEnumSegments.

6.

Copy the segmentation handle and data to another handle by calling LSegment::MrcCopySegmentationHandle.

7.

Call LSegment::MrcSaveSegmentation to save the resulting segments to a file. To load segments that have bee saved to a file, call LSegment::MrcLoadSegmentation.

8.

Call LSegment::MrcSaveBitmapT44 to save the page as a Standard T44 file OR Call LSegment::MrcSaveBitmap to save the page using LEAD Proprietary T44 Format.

9.

Call LSegment::MrcSaveBitmapList to save a multi page file using Standard T44 format, LEAD Proprietary T44 format or PDF format.

10.

End the segmentation process by calling LSegment::MrcStopBitmapSegmentation.

The functionality provided by this module can be broken into the following categories:

1.

Start up and end the segmentation process:

 

LSegment::MrcStartBitmapSegmentation

 

LSegment::MrcSegmentBitmapExt

2.

Automatic segmentation of a page:

 

LSegment::MrcSegmentBitmap

3.

Manual segmentation of a page:

 

LSegment::MrcCreateNewSegment

4.

Manipulating segments:

 

LSegment::MrcSetSegmentData

 

LSegment::MrcCombineSegments

 

LSegment::MrcCopySegmentationHandle

 

LSegment::MrcDeleteSegment

 

LSegment::MrcEnumSegments

 

LSegment::MrcLoadSegmentation

 

LSegment::MrcSaveSegmentation

5.

Saving a page as MRC or PDF:

 

LSegment::MrcSaveBitmapT44

 

LSegment::MrcSaveBitmap

6.

Saving multiple pages as MRC or PDF:

 

LSegment::MrcSaveBitmapList

7.

Loading an MRC file:

 

LSegment::MrcLoadBitmap

 

LSegment::MrcGetPagesCount