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



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, February 10, 2008 7:35:19 PM(UTC)

Groups: Registered
Posts: 8


I am using vb.net 2005 and Leadtool v 15

I want to show thumbnail view of all pages of a tiff file if it has multi pages.

I try to use RasterImageList but didn't find how to add each page as seperate thumbnail.

Is there any way to show it?

looking for your kind reply



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.

#2 Posted : Monday, February 11, 2008 12:57:05 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)


To show thumbnail view of all pages of a tiff file, you can load the TIFF file and then add each page to a separate item in the RasterImageList. Please check the following code:
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Imports System.Drawing.Drawing2D

Public Class Form1

Private RasImage As RasterImage
Private _codecs As RasterCodecs

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
_codecs = New RasterCodecs()
AddHandler _codecs.LoadPage, AddressOf Page_Load
RasImage = _codecs.Load("c:\TempFiles\MULTIG4.TIF")
End Sub

Private Sub Page_Load(ByVal sender As Object, ByVal e As Leadtools.Codecs.CodecsPageEventArgs)
If e.State = CodecsPageEventState.After Then
Dim item As RasterImageListItem = New RasterImageListItem(e.Image, 1, "Item" & e.Page.ToString())
End If
End Sub

Maen Badwan
LEADTOOLS Technical Support
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-2023, Yet Another Forum.NET
This page was generated in 0.045 seconds.