The following example uses the MRC functions to save a page as MRC or PDF:
Start up the segmentation process by calling L_MrcStartBitmapSegmentation.
Segment the page by calling L_MrcSegmentBitmap.
Change some properties of the segments by calling L_MrcSetSegmentData and L_MrcEnumSegments.
Delete some segments by calling L_MrcDeleteSegment and L_MrcEnumSegments.
Combine segments by calling L_MrcCombineSegments and L_MrcEnumSegments.
Copy the segmentation handle and data to another handle by calling L_MrcCopySegmentationHandle.
Call L_MrcSaveSegmentation to save the resulting segments to a file. To load segments that have bee saved to a file, call L_MrcLoadSegmentation.
Call L_MrcSaveBitmapT44 to save the page as a Standard T44 file OR Call L_MrcSaveBitmap to save the page using LEAD Proprietary T44 Format.
Call L_MrcSaveBitmapList to save a multi page file using Standard T44 format, LEAD Proprietary T44 format or PDF format.
End the segmentation process by calling L_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: L_MrcCreateNewSegment
Manipulating segments:
Saving a page as MRC or PDF:
Saving multiple pages as MRC or PDF: L_MrcSaveBitmapList
Loading an MRC file: