Loads an MRC image file into an image. The file can be in any
supported image file format.
Syntax
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 Basic | Copy Code |
---|
Public Sub LoadImageExample()
Dim fileName As String = LeadtoolsExamples.Common.ImagesPath.Path + "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 = LeadtoolsExamples.Common.ImagesPath.Path + "MrcSegmentation.tif"; int lastPage = MrcSegmenter.GetPagesCount(fileName); RasterImage image = MrcSegmenter.LoadImage(fileName, lastPage); } |
Remarks
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