1
Answer

Image Viewer Problem

ravi indraN

ravi indraN

16y
2.7k
1
I am new to .Net currently i am using vb.net 2005, I am i am creating an
image viewer that should display single and multiple Tiff images.
I am using a panel and picture box to create an image viewer.
I have created that to show only single tiff image.
But i need to show the images one after one if the tiff image has multiple frames.
I have counted the multiple tiff page frames using following code

Code:

Panel1.AutoScroll = True
ImageViewer.Image = Image.FromFile("C:\Documents and Settings\Administrator\Desktop\test202.tif")
ImageViewer.SizeMode = PictureBoxSizeMode.StretchImage


Dim MasterImage As Image = ImageViewer.Image
Dim oDimension As New FrameDimension(MasterImage.FrameDimensionsList(0))
Dim FrameCount As Integer = MasterImage.GetFrameCount(oDimension)

The above code gives the no of tiff pages

but i don't know how to show the frames one after one in the picturebox

Can you have solution in VB.Net or in C#.net for my problem  

My Email id is [email protected]

Answers (1)