Leadtools.Mrc Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Save Method
See Also  Example
Leadtools.Mrc Namespace > MrcSegmenter Class : Save Method



fileName
The output file name.
fileName
The output file name.
Saves the segments to a specific file.

Syntax

Visual Basic (Declaration) 
Public Sub Save( _
   ByVal fileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As MrcSegmenter
Dim fileName As String
 
instance.Save(fileName)
C# 
public void Save( 
   string fileName
)
C++/CLI 
public:
void Save( 
   String^ fileName
) 

Parameters

fileName
The output file name.

Example

Visual BasicCopy Code
Public Sub SaveExample()
    ' Load an image
    RasterCodecs.Startup()
    Dim codecs As RasterCodecs = New RasterCodecs()
    codecs.ThrowExceptionsOnInvalidImages = True

    Dim image As RasterImage = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.mrc")

    Dim mrcSegmenter As MrcSegmenter = New MrcSegmenter(image, LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.sgm")

    mrcSegmenter.Save(LeadtoolsExamples.Common.ImagesPath.Path + "SaveExampleResult.sgm")
End Sub
C#Copy Code
public void SaveExample() 

   // Load an image 
   RasterCodecs.Startup(); 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.mrc"); 
 
   MrcSegmenter mrcSegmenter = new MrcSegmenter(image, LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.sgm"); 
 
   mrcSegmenter.Save(LeadtoolsExamples.Common.ImagesPath.Path + "SaveExampleResult.sgm"); 
}

Remarks

This method is used to export the resulted segments into a binary format. For more information, refer to Programming with LEADTOOLS MRC.

Requirements

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

See Also

Leadtools.Mrc requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features