Visual Basic (Declaration) | |
---|---|
Public Shared Sub SaveBitmapList( _ ByVal segmenters As List(Of MrcSegmenter), _ ByVal images As List(Of RasterImage), _ ByVal fileName As String, _ ByVal format As MrcImageListFormat, _ ByVal options As MrcCompressionOptions _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static void SaveBitmapList( List<MrcSegmenter> segmenters, List<RasterImage> images, string fileName, MrcImageListFormat format, MrcCompressionOptions options ) |
Managed Extensions for C++ | |
---|---|
public: static void SaveBitmapList( List<MrcSegmenter>* segmenters, List<RasterImage>* images, string* fileName, MrcImageListFormat format, MrcCompressionOptions options ) |
C++/CLI | |
---|---|
public: static void SaveBitmapList( List<MrcSegmenter>^ segmenters, List<RasterImage>^ images, String^ fileName, MrcImageListFormat format, MrcCompressionOptions options ) |
Parameters
- segmenters
- List of MrcSegmenter objects.
- images
- List of images to be saved.
- fileName
- Output file name.
- format
- Output file format.
- options
- Structure that contains the compression information to use when saving the file.
Visual Basic | Copy Code |
---|---|
Private Function MrcListSegmentation(ByVal image As RasterImage) As MrcSegmenter |
C# | Copy Code |
---|---|
private MrcSegmenter MrcListSegmentation(RasterImage image) |
This method is available in the Document/Medical toolkits.
Use this method to save a list of images as a:
If format parameter is set to MrcPdf, *.PDF is the default file extension.
Use this method to save a list of images as a TIF file with a Standard T44 subtype format, LEAD MRC subtype format, or PDF file, based on the LEAD segmentation technique, if you want to:
Use the SaveImageT44, or SaveImage methods to save a single image or to append, inset overwrite to already existing TIF file.
It is best to perform segmentation for all images in the list before calling this method. Segmentation can be performed automatically by calling the SegmentImage method, or performed manually by calling the AddSegment method.
When using this method, segments can be any value of the MrcSegmentType enumeration values.
The SegmentImage method maps the text, grayscale and picture segments into layers (mask, background and foreground layers) as defined in the NLS* model of the T.44 standard. 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. The Mixed Raster Content (MRC) format was developed by the International Telecommunications Union as part of ITU-T Recommendation T.44.
If the options parameter is empty, then the method will use Fax G4 compression for the mask layer (1-bit), JPEG compression for the 24 bit image segments and 2 for the quality factor, JPEG compression for the 8 bit grayscale segments and 2 for the quality factor, and JBIG compression for the 2 bit text and 2 bit grayscale segments. For more information, refer to MrcCompressionOptions. Note that the Grayscale2BitCoder, the Grayscale8BitCoder, and the Grayscale8BitFactor properties of the MrcCompressionOptions structure are used only with the MrcTif formats. The Text2BitCoder property of the MrcCompressionOptions structure is used with the MrcTif and MrcPdf formats only. For more information, refer to Programming with LEADTOOLS MRC.
Use this method to save a list of images as a:
TIF file using the Standard T44 format (if the format parameter is set to MrcT44Tif). TIF file with a LEAD MRC subtype format (if the format parameter is set to MrcTif). Multipage PDF using segmentation capabilities (if the format parameter is set to MrcPdf).
If format parameter is set to MrcPdf, *.PDF is the default file extension.
Use this method to save a list of images as a TIF file with a Standard T44 subtype format, LEAD MRC subtype format, or PDF file, based on the LEAD segmentation technique, if you want to:
Take advantage of the greater number of different segment types available when using the proprietary format. Create smaller files than would be possible by saving them to the Standard T44 format. Create higher quality files than would be possible by saving them to the Standard T44 format.
Use the SaveImageT44, or SaveImage methods to save a single image or to append, inset overwrite to already existing TIF file.
It is best to perform segmentation for all images in the list before calling this method. Segmentation can be performed automatically by calling the SegmentImage method, or performed manually by calling the AddSegment method.
When using this method, segments can be any value of the MrcSegmentType enumeration values.
The SegmentImage method maps the text, grayscale and picture segments into layers (mask, background and foreground layers) as defined in the NLS* model of the T.44 standard. 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. The Mixed Raster Content (MRC) format was developed by the International Telecommunications Union as part of ITU-T Recommendation T.44.
If the options parameter is empty, then the method will use Fax G4 compression for the mask layer (1-bit), JPEG compression for the 24 bit image segments and 2 for the quality factor, JPEG compression for the 8 bit grayscale segments and 2 for the quality factor, and JBIG compression for the 2 bit text and 2 bit grayscale segments. For more information, refer to MrcCompressionOptions. Note that the Grayscale2BitCoder, the Grayscale8BitCoder, and the Grayscale8BitFactor properties of the MrcCompressionOptions structure are used only with the MrcTif formats. The Text2BitCoder property of the MrcCompressionOptions structure is used with the MrcTif and MrcPdf formats only. For more information, refer to Programming with LEADTOOLS MRC.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family