Leadtools.Mrc Namespace > MrcSegmenter Class : LoadImage Method |
public static RasterImage LoadImage( string fileName, int pageNumber )
'Declaration Public Shared Function LoadImage( _ ByVal fileName As String, _ ByVal pageNumber As Integer _ ) As RasterImage
'Usage Dim fileName As String Dim pageNumber As Integer Dim value As RasterImage value = MrcSegmenter.LoadImage(fileName, pageNumber)
public static RasterImage LoadImage( string fileName, int pageNumber )
function Leadtools.Mrc.MrcSegmenter.LoadImage( fileName , pageNumber )
public: static RasterImage^ LoadImage( String^ fileName, int pageNumber )
For information about loading capibilities, refer to MRC Loading Capabilities.
Public Sub LoadImageExample() Dim fileName As String = Path.Combine(LEAD_VARS.ImagesDir, "MRCSegmentation.mrc") Dim lastPage As Integer = MrcSegmenter.GetPagesCount(fileName) Dim image As RasterImage = MrcSegmenter.LoadImage(fileName, lastPage) End Sub Public NotInheritable Class LEAD_VARS Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images" End Class
public void LoadImageExample() { String fileName = Path.Combine(LEAD_VARS.ImagesDir,"MRCSegmentation.mrc"); int lastPage = MrcSegmenter.GetPagesCount(fileName); RasterImage image = MrcSegmenter.LoadImage(fileName, lastPage); } static class LEAD_VARS { public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images"; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2