A file can be saved using the LEAD Proprietary MRC Format, the Standard MRC format, or PDF format with MRC segmentation. To save the image in the LEAD Proprietary MRC, MRC2, PDF or in TIF format, call the MrcSegmenter.SaveImage method, or call MrcSegmenter.SaveBitmapList to save a multi-page file. To save the image in Standard MRC or in the TIF format, call MrcSegmenter.SaveImageT44.
The LEAD proprietary MRC formats used by MrcSegmenter.SaveImage or MrcSegmenter.SaveBitmapList differ from the Standard MRC format used by MrcSegmenter.SaveImageT44 in the following ways:
- ·When using the LEAD Proprietary MRC or PDF formats, segments can be 1-bit black and white, 1-bit color, 2-bit color, 2-bit grayscale, 8-bit grayscale, or picture. When using the standard MRC format, segments can be 1-bit black and white, 1-bit color, or picture.
- While any application that supports the T44 standard can open a file saved in those formats, only an application with LEAD MRC support can open a file saved in one of the LEAD proprietary MRC formats.
- Saving a given image in one of the LEAD proprietary MRC formats creates a smaller file than saving the same image in the Standard MRC format.
- Saving a given image in one of the LEAD proprietary MRC formats or PDF creates a higher quality file than saving the same image in the Standard MRC format.
- When saving a multipaged file as a Standard MRC format (MRC) or PDF, only one page can be saved. The LEAD Proprietary MRC formats (LEAD-MRC and LEAD-MRC2) are single page file formats.
Note: The characteristics of individual images differ greatly and not every image compresses well as mixed raster content.
The LEADTOOLS implementation of the MRC model involves dividing an object into segments. A segment is a rectangular area on the image that can be classified as text, grayscale, or picture, depending on the number of colors used in its area. Segmentation can be performed automatically, manually, or internally. Different types of compression are available, depending upon which save method is being used as well as which segment type is being compressed.
Use the MrcCompressionOptions class to specify the compression and quality factor information for the file. The following members of this class are used to specify compression and quality characteristics to be used when saving an MRC file:
- ·MrcCompressionOptions.MaskCoder
- ·MrcCompressionOptions.PictureCoder
- ·MrcCompressionOptions.PictureQualityFactor
In addition, when saving an image in one of the LEAD Proprietary MRC formats, the following members of the MrcCompressionOptions class can be used to specify compression and quality for the additional segment types available to that format:
- ·MrcCompressionOptions.Grayscale2BitCoder
- ·MrcCompressionOptions.Grayscale8BitCoder
- ·MrcCompressionOptions.Grayscale8BitFactor
- ·MrcCompressionOptions.Text2BitCoder
With LEADTOOLS it is easy to handle the segmentation process, whether performing segmentation automatically using MrcSegmenter.SegmentImage or manually using MrcSegmenter.AddSegment.