The following example uses the MRC methods to save a page as MRC or PDF:
Start up the segmentation process by creating a Leadtools.Mrc.MrcSegmenter object. Segment the page by calling Leadtools.Mrc.MrcSegmenter.SegmentImage. Change some properties of the segments by calling Leadtools.Mrc.MrcSegmenter.SetSegmentData and Leadtools.Mrc.MrcSegmenter.EnumerateSegments. Delete some segments by calling Leadtools.Mrc.MrcSegmenter.DeleteSegment and Leadtools.Mrc.MrcSegmenter.EnumerateSegments. Combine segments by calling Leadtools.Mrc.MrcSegmenter.CombineSegments and Leadtools.Mrc.MrcSegmenter.EnumerateSegments. Copy the segmentation handle and data to another handle by calling Leadtools.Mrc.MrcSegmenter.Clone. Call the Leadtools.Mrc. MrcSegmenter.Save method to save the resulting segments to a file. To create an Leadtools.Mrc.MrcSegmenter object from the saved segmentation data from a file, use the Leadtools.Mrc.MrcSegmenter (RasterImage,String) Constructor. Call Leadtools.Mrc.MrcSegmenter.SaveImageT44 to save the page as a Standard T44 file OR call Leadtools.Mrc.MrcSegmenter.SaveImage to save the page using LEAD Proprietary T44 Format. Call Leadtools.Mrc.MrcSegmenter.SaveBitmapList to save a multi page file using Standard T44 format, LEAD Proprietary T44 format or PDF format.
The functionality provided by this module can be broken into the following categories:
Automatic segmentation of a page: Leadtools.Mrc.MrcSegmenter.SegmentImage Manual segmentation of a page: Leadtools.Mrc.MrcSegmenter.AddSegment Manipulating segments: Leadtools.Mrc.MrcSegmenter, Leadtools.Mrc.MrcSegmenter.CombineSegmentsLeadtools.Mrc.MrcSegmenter.SetSegmentData, Leadtools.Mrc.MrcSegmenter.Clone, Leadtools.Mrc.MrcSegmenter.DeleteSegment, Leadtools.Mrc.MrcSegmenter.EnumerateSegments, Leadtools.Mrc.MrcSegmenter.Save Saving a page as MRC or PDF: Leadtools.Mrc.MrcSegmenter.SaveImageT44, Leadtools.Mrc.MrcSegmenter.SaveImage Saving multiple pages as MRC or PDF: Leadtools.Mrc.MrcSegmenter.SaveBitmapList Loading an MRC file: Leadtools.Mrc.MrcSegmenter.LoadImage, Leadtools.Mrc.MrcSegmenter.GetPagesCount