Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, September 2, 2009 6:03:40 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


Attached is a simple C# 2005 project that uses LEADTOOLS 16.5 to load and display each page in a multipage tif file as a separate RasterImageListItem and display them in a RasterImageViewer when selected.

There's two main ways to do this and each has its advantages and drawbacks, both of which are demonstrated in the demo based on the value you choose for m_bUseThumbnails:

1. Create thumbnails for the images within the RasterImageListItems using RasterCodecs.ReadThumbnail.  This approach is the recommended approach because it will use the least amount of memory and can make a big difference in overal performance for images with a lot of pages.  The only drawback to this approach is that when selecting an item, you have to Load the full sized image which causes more disk accesses.

2. Use full size images for the images within the RasterImageListItems using RasterCodecs.Load.  This will use up more memory, but may give some speed improvements when selecting the item.  This would work well if you don't have many pages and the actual images are fairly large.
File Attachment(s):
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.057 seconds.