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




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
)
Managed Extensions for C++ 
public: void Save( 
   string* fileName
) 
C++/CLI 
public:
void Save( 
   String^ fileName
) 

Parameters

fileName
The output file name.

Example

Visual BasicCopy Code
<Test> _
Public Sub SaveExample()
  ' Load an image
  RasterCodecs.Startup()
  Dim codecs As RasterCodecs = New RasterCodecs()
  codecs.ThrowExceptionsOnInvalidImages = True
  Dim image As RasterImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.mrc")

  Dim mrcSegmenter As MrcSegmenter = New MrcSegmenter(image, "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.sgm")

  mrcSegmenter.Save("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\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(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.mrc"); 
 
   MrcSegmenter mrcSegmenter = new MrcSegmenter(image, @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.sgm"); 
 
   mrcSegmenter.Save(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\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: Raster Pro/Document/Medical Features