LSegment::MrcSaveSegmentation
#include "ltwrappr.h"
L_INT EXT_FUNCTION LSegment::MrcSaveSegmentation(pszFileName)
| /* output file name */ | 
Saves the segments to a file. This function is available in the (Document/Medical) toolkits.
| Parameter | Description | 
| pszFileName | Character string that contains the output file name. | 
Returns
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
Comments
This function is used to export the segments from the segmentation handle to the specified file in a binary file format.
Call the LSegment::MrcStartBitmapSegmentation function before using any of the segmentation functions. When the LSegment class object is no longer needed, free it by calling the LSegment::MrcStopBitmapSegmentation function.
Required DLLs and Libraries
| LTSGM For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. | 
See Also
Example
L_INT ExportSegments(LSegment Segment, L_TCHAR L_FAR* pszFileName, LBitmapBase &Bitmap)
{
   return Segment.MrcSaveSegmentation(pszFileName);
}