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




fileName
file to be loaded.
pageNumber
The page number of a multi-page file, which can contain more than one image. When loading a file, this is the exact page number. For more information on multi-page files refer to Multipage File Formats.
Loads an MRC image file into an image. The file can be in any supported image file format.

Syntax

Visual Basic (Declaration) 
Public Shared Function LoadImage( _
   ByVal fileName As String, _
   ByVal pageNumber As Integer _
) As RasterImage
Visual Basic (Usage)Copy Code
Dim fileName As String
Dim pageNumber As Integer
Dim value As RasterImage
 
value = MrcSegmenter.LoadImage(fileName, pageNumber)
C# 
public static RasterImage LoadImage( 
   string fileName,
   int pageNumber
)
Managed Extensions for C++ 
public: static RasterImage LoadImage( 
   string* fileName,
   int pageNumber
) 
C++/CLI 
public:
static RasterImage LoadImage( 
   String^ fileName,
   int pageNumber
) 

Parameters

fileName
file to be loaded.
pageNumber
The page number of a multi-page file, which can contain more than one image. When loading a file, this is the exact page number. For more information on multi-page files refer to Multipage File Formats.

Example

Visual BasicCopy Code
<Test> _
Public Sub LoadImageExample()
  Dim fileName As String = "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MrcSegmentation.tif"
  Dim lastPage As Integer = MrcSegmenter.GetPagesCount(fileName)
  Dim image As RasterImage = MrcSegmenter.LoadImage(fileName, lastPage)
End Sub
C#Copy Code
public void LoadImageExample() 

   String fileName = @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MrcSegmentation.tif"; 
   int lastPage = MrcSegmenter.GetPagesCount(fileName); 
   RasterImage image = MrcSegmenter.LoadImage(fileName, lastPage); 
}

Remarks

This method loads the MRC image files that were saved using either LEAD Proprietary T44 Format or Standard T44 Format. You can also use Load method to load the MRC image file.

For information about loading capibilities, refer to MRC Loading Capabilities.

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