Re: ImageList control and multipage TIFF
Started by kchakraborti at 06-18-2008 18:13. Topic has 6 replies.
|
|
06-18-2008, 18:13
|
kchakraborti
Joined on 05-22-2006
Posts 28
|
ImageList control and multipage TIFF
|
 
 
|
|
|
Hello,
I have an ImageList control that has been associated with a multi page TIFF file. By default, the ImageList control displays the first page of the multi page TIFF file. Is there a way to use a different page within the TIFF as what's displayed on the ImageList control without altering the BitmapList property of the ImageList?
I am using LeadTools Document Imaging version 14.5.0.37.
Thanks in advance,
Kaushik
|
|
|
|
|
Report
|
|
|
|
06-19-2008, 6:28
|
Yasir Alani

Joined on 02-05-2007
Posts 289
|
Re: ImageList control and multipage TIFF
|
 
 
|
|
|
I'm not sure I understand the requirements. First of all, which programming interface are you using? In LEADTOOLS 14.5, we have image list controls in our DLL API, C++ Classes, Raster COM objects, ActiveX controls and .NET classes.
As far as I can tell, NONE of these image list controls has a property called BitmapList.
Please give me more details about what you're trying to do.
Yasir Alani LEADTOOLS Technical Support support@leadtools.com
|
|
|
|
|
Report
|
|
|
|
06-19-2008, 9:14
|
kchakraborti
Joined on 05-22-2006
Posts 28
|
|
|
I am using the Activex objects within a web page to display thumbnails on one side (LeadList control) and the actual document on the other side(Lead Main control). Please refer to attached screen shot. On the left section, when a multipage TIFF image is assigned using LeadList1.Insert() the thumbnail shows the first page of the multi page by default. But I wish to show some other page as the thumbnail without changing the underlying bitmap that is assigned to the ImageList item. Is that possible?
Thanks,
Kaushik
|
|
|
|
|
Report
|
|
|
|
06-20-2008, 17:03
|
Walter

Joined on 04-14-2008
Charlotte, NC
Posts 112
|
|
|
Here is a sample project that shows a thumbnail different from the pages being displayed in the main control. The pages in the main control can be cycles from beginning to end with the previous and next buttons.
The thumbnail page displayed can be changed by using the LoadFromFile method from the ImageList control. The third parameter is the page to start on. The fourth parameter tells it to only load one page.
Walter Technical Support LEADTOOLS support@leadtools.com
|
|
|
|
|
Report
|
|
|
|
06-22-2008, 22:32
|
kchakraborti
Joined on 05-22-2006
Posts 28
|
Re: ImageList control and multipage TIFF
|
 
 
|
|
|
Walter,
Thanks for taking time to post this solution. However the problem I have is my bitmap is not on a file on disk, rather I am actually loading the main control first using a HTTP image stream on the fly coming from a web server, and then loading the image list using ImageList.Insert(obj.Bitmap,...) method. I tried using the "obj.Bitmap" with the LoadFromFile and as expected, it did not like it. Any ideas how I can hack the LoadFromFile to load from a stream or .Bitmap object, instead of a file on local disk, or any other ways to do this?
Thanks again,
Kaushik
|
|
|
|
|
Report
|
|
|
|
06-23-2008, 16:21
|
Walter

Joined on 04-14-2008
Charlotte, NC
Posts 112
|
|
|
I've modified the project to use images that come from internet sites. I hosted the file locally to test it.
Does this help?
Walter Technical Support LEADTOOLS support@leadtools.com
|
|
|
|
|
Report
|
|
|
|
06-24-2008, 9:06
|
kchakraborti
Joined on 05-22-2006
Posts 28
|
Re: ImageList control and multipage TIFF
|
 
 
|
|
|
Awesome! So the trick was setting the BitmapListIndex of the source bitmap to the intended page before inserting the item in the ImageList. That explains. Thanks a lot for your help!
Cheers!
Kaushik
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » Image Display » Re: ImageList control and multipage TIFF
|
|
Copyright LEAD Technologies, Inc. 2008
