public static int GetPagesCount(
string fileName
)
fileName
MRC file name.
Use this method to get the number of pages in an MRC file.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Mrc;
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:\LEADTOOLS23\Resources\Images";
}