Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

ImageList control and multipage TIFF
Started by kchakraborti at 06-18-2008 18:13. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  06-18-2008, 18:13
kchakraborti is not online. Last active: 6/19/2008 3:05:00 PM kchakraborti

Top 75 Posts
Joined on 05-22-2006
Posts 28
ImageList control and multipage TIFF
Reply Quote
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 is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: ImageList control and multipage TIFF
Reply Quote
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 is not online. Last active: 6/19/2008 3:05:00 PM kchakraborti

Top 75 Posts
Joined on 05-22-2006
Posts 28
Re: ImageList control and multipage TIFF

Attachment: Screenshot.jpg
Reply Quote
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 is not online. Last active: 11/13/2008 12:56:37 PM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 116
Re: ImageList control and multipage TIFF

Attachment: OCX - V145 - ImageList Display Non-Default Page.zip
Reply Quote
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 is not online. Last active: 6/19/2008 3:05:00 PM kchakraborti

Top 75 Posts
Joined on 05-22-2006
Posts 28
Re: ImageList control and multipage TIFF
Reply Quote
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 is not online. Last active: 11/13/2008 12:56:37 PM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 116
Re: ImageList control and multipage TIFF

Attachment: OCX - V145 - ImageList Display Non-Default Page.zip
Reply Quote
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 is not online. Last active: 6/19/2008 3:05:00 PM kchakraborti

Top 75 Posts
Joined on 05-22-2006
Posts 28
Re: ImageList control and multipage TIFF
Reply Quote
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 
Post
LEAD Support Fo... » Developer » Image Display » ImageList control and multipage TIFF

Powered by Community Server, by Telligent Systems