A scenario for using the above functions in order to save a page as MRC or PDF is as follows:
Start up the segmentation process by calling LSegment::MrcStartBitmapSegmentation.
Segment the page by calling LSegment::MrcSegmentBitmap.
Change some properties of the segments by calling LSegment::MrcSetSegmentData and LSegment::MrcEnumSegments.
Delete some segments by calling LSegment::MrcDeleteSegment and LSegment::MrcEnumSegments.
Combine segments by calling LSegment::MrcCombineSegments and LSegment::MrcEnumSegments.
Copy the segmentation handle and data to another handle by calling LSegment::MrcCopySegmentationHandle.
Call LSegment::MrcSaveSegmentation to save the resulting segments to a file. To load segments that have bee saved to a file, call LSegment::MrcLoadSegmentation.
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.
Call LSegment::MrcSaveBitmapList to save a multipage file using Standard T44 format, LEAD Proprietary T44 format or PDF format.
End the segmentation process by calling LSegment::MrcStopBitmapSegmentation.
The functionality provided by this module can be broken into the following categories:
Start up and end the segmentation process:
Automatic segmentation of a page:
Manual segmentation of a page:
Manipulating segments:
Saving a page as MRC or PDF:
Saving multiple pages as MRC or PDF:
Loading an MRC file: