Gets the total number of pages a multi page file.
public int FileTotalPages { get; set; }
public:
property Int32 FileTotalPages
{
Int32 get()
void set(Int32 value)
}
The 1-based page number index in Image to display. Default value is 1.
This property is valid only when calling LoadThumbnails(String,String,RasterThumbnailBrowserLoadFlags) and the flags parameter is set to RasterThumbnailBrowserLoadFlags.ExpandMultiPage
This example will create and populate a RasterImageList control with thumbnail of the pages in multipage image file.
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
public void RasterImageListItem_Page(RasterImageList imageList)
{
// Initialize the RasterCodecs class
RasterCodecs codecs = new RasterCodecs();
// Clear existing items
imageList.Items.Clear();
// Load a multi-page file
string fileName = Path.Combine(LEAD_VARS.ImagesDir, "eye.gif");
RasterImage image = codecs.Load(fileName);
// Create the items (1 for each page)
for (int page = 1; page <= image.PageCount; page++)
{
RasterImageListItem item = new RasterImageListItem();
item.Image = image; // Use the same image for all items
item.Page = page; // But with a different page number
item.Text = "Page " + page.ToString();
// Add the item to the image list
imageList.Items.Add(item);
}
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document