obrien.james
Member
- Joined
- Sep 11, 2009
- Messages
- 15
- Programming Experience
- Beginner
Hi,
Im trying to make a win form that opens multipage tiff files. The code that im currently using is loading the image into a Image Variable (BaseImg) with the following line of code:
BaseImg = Image.FromFile("Some path").
Then i iterate throught the baseimg and create a bitmap of each page to be stored in a variable Frames which is a ListOf(Image).
Finally I load Frames(0) into a picture box control which is inside a panel.
I have a small multipage tiff file with 5 pages and it takes some time to open ~ 5-8 seconds. This may not seem like a long time but at work we use a program that loads multipage tiff files and it opens instantly.
Then when I change the image within the form just by setting Picturebox1.image = Frmaes(currentimage+1). This can take some time even though the image is stored in a variable. Again at work the program changes page in an instant.
What i'm asking is there any way by which I can speed the opening of the images or if there is a better way to store my split tiff images.
James
Im trying to make a win form that opens multipage tiff files. The code that im currently using is loading the image into a Image Variable (BaseImg) with the following line of code:
BaseImg = Image.FromFile("Some path").
Then i iterate throught the baseimg and create a bitmap of each page to be stored in a variable Frames which is a ListOf(Image).
Finally I load Frames(0) into a picture box control which is inside a panel.
I have a small multipage tiff file with 5 pages and it takes some time to open ~ 5-8 seconds. This may not seem like a long time but at work we use a program that loads multipage tiff files and it opens instantly.
Then when I change the image within the form just by setting Picturebox1.image = Frmaes(currentimage+1). This can take some time even though the image is stored in a variable. Again at work the program changes page in an instant.
What i'm asking is there any way by which I can speed the opening of the images or if there is a better way to store my split tiff images.
James