This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, February 10, 2008 7:35:19 PM(UTC)
Groups: Registered
Posts: 8
Hi,
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
thanxs
Fareed
#2
Posted
:
Monday, February 11, 2008 12:57:05 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
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
RasterCodecs.Startup()
_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
MsgBox(e.Page)
Dim item As RasterImageListItem = New RasterImageListItem(e.Image, 1, "Item" & e.Page.ToString())
RasterImageList1.Items.Add(item)
End If
End Sub
+---------------+
Thanks,
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.