Image page number to display.
public int Page {get; set;}Public Property Page As IntegerThe 1-based page number index in Image to display. The default value is 1.
Set up the RasterImageList control to an individual page of a multi-page file in each item. To do that, simply set the Image property of each item into the multi-page image, then set the Page property to the desired page.
The value of RasterImage.Page is not used to control the page number of the item to be viewed in this item. Instead, use the Page property. This allows the same Leadtools.RasterImage object to be used multiple items while setting the Page property to different values.
This example will create and populate a RasterImageList control with thumbnail of the pages in a multi-page image file.
Imports Leadtools.WinFormsImports LeadtoolsImports Leadtools.CodecsPublic Sub RasterImageListItem_Page(ByVal imageList As RasterImageList)' Initialize the RasterCodecs classDim codecs As RasterCodecs = New RasterCodecs()' Clear existing itemsimageList.Items.Clear()' Load a multi-page fileDim fileName As String = Path.Combine(LEAD_VARS.ImagesDir, "eye.gif")Dim image As RasterImage = codecs.Load(fileName)' Create the items (1 for each page)Dim page As Integer = 1Do While page <= image.PageCountDim item As RasterImageListItem = New RasterImageListItem()item.Image = image ' Use the same image for all itemsitem.Page = page ' But with a different page numberitem.Text = "Page " & page.ToString()' Add the item to the image listimageList.Items.Add(item)page += 1LoopEnd SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"End Class
using Leadtools.WinForms;using Leadtools;using Leadtools.Codecs;public void RasterImageListItem_Page(RasterImageList imageList){// Initialize the RasterCodecs classRasterCodecs codecs = new RasterCodecs();// Clear existing itemsimageList.Items.Clear();// Load a multi-page filestring 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 itemsitem.Page = page; // But with a different page numberitem.Text = "Page " + page.ToString();// Add the item to the image listimageList.Items.Add(item);}}static class LEAD_VARS{public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images";}
|
Products |
Support |
Feedback: Page Property (RasterImageListItem) - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.