Load a Thumbnail Viewer with a multi-page TIFF from Memory
Load a Thumbnail Viewer with a multi-page TIFF from Memory
Hello,
I need some help with this..
Load a Thumbnail Viewer with a multi-page TIFF from Memory (not from a file) AND being able to select a thumbnail, and have a GDViewer display the selected thumbnail (again all in memory).
Thanks!
I need some help with this..
Load a Thumbnail Viewer with a multi-page TIFF from Memory (not from a file) AND being able to select a thumbnail, and have a GDViewer display the selected thumbnail (again all in memory).
Thanks!
Re: Load a Thumbnail Viewer with a multi-page TIFF from Memo
Hi,
Here the basis:
Let me know if you need further information.
Here the basis:
Code: Select all
Private m_ImageID As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oGdPictureImaging As New GdPictureImaging
Dim stream As New IO.FileStream("C:\multipage.TIF", IO.FileMode.Open)
m_ImageID = oGdPictureImaging.CreateGdPictureImageFromStream(stream)
GdViewer1.DisplayFromGdPictureImage(m_ImageID)
ThumbnailEx1.LoadFromGdViewer(GdViewer1)
End Sub
Re: Load a Thumbnail Viewer with a multi-page TIFF from Memo
I notice 2 things here...
1.- The code sample has a line that references a file in the hard drive... ( Dim stream As New IO.FileStream("C:\multipage.TIF", IO.FileMode.Open)). Can I just create a stream from a multipage tiff document and pass it to CreateGdPictureFromStream? I will not have a file to reference..
2.- Does this line passes the page from the thumbnail control to the viewer or vice versa? I am a bit confused with the method's name "LoadFromGdViewer" and what I am trying to accomplish.
ThumbnailEx1.LoadFromGdViewer(GdViewer1)
1.- The code sample has a line that references a file in the hard drive... ( Dim stream As New IO.FileStream("C:\multipage.TIF", IO.FileMode.Open)). Can I just create a stream from a multipage tiff document and pass it to CreateGdPictureFromStream? I will not have a file to reference..
2.- Does this line passes the page from the thumbnail control to the viewer or vice versa? I am a bit confused with the method's name "LoadFromGdViewer" and what I am trying to accomplish.
ThumbnailEx1.LoadFromGdViewer(GdViewer1)
Re: Load a Thumbnail Viewer with a multi-page TIFF from Memo
Hi,
Kind regards,
Loïc
Yes.1.- The code sample has a line that references a file in the hard drive... ( Dim stream As New IO.FileStream("C:\multipage.TIF", IO.FileMode.Open)). Can I just create a stream from a multipage tiff document and pass it to CreateGdPictureFromStream? I will not have a file to reference..
In this line the Thumbnail control displays item for the document currently displayed by the GdViewer object.2.- Does this line passes the page from the thumbnail control to the viewer or vice versa? I am a bit confused with the method's name "LoadFromGdViewer" and what I am trying to accomplish.
ThumbnailEx1.LoadFromGdViewer(GdViewer1)
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests