Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
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 )
For information about loading capabilities, refer to MRC Loading Capabilities.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.Mrc <TestMethod()> _ 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
using Leadtools; using Leadtools.Codecs; using Leadtools.Mrc; [TestMethod] 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"; }