LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Load and Display Each Page in Multipage TIF as Individual RasterImageListItems
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, September 2, 2009 6:03:40 AM(UTC)
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.
LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Load and Display Each Page in Multipage TIF as Individual RasterImageListItems
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.