In my app, I need to open up a multipage tiff file, and also display
it's thumbnail images IN HIGH QUALITY. (High Quality meaning
anti-aliased, and looking good; not rough and pixely) The thumbnail
images are displayed in a ListView control. (I go through each page of
the file, create a thumbnail of it, and put it into an ImageList. Then
i hook that imagelist up to the ListView.)
It works fine, but it is VERY slow. Creating and displaying the
thumbnails for a 50-page file takes up to 39 seconds. I got it down to
22 seconds, but the quality was unusable.
In comparison, I opened up the same 50-page tiff in the efax viewer
(www.efax.com), and it opened up in a blink of an eye; pretty much
instantly.
Is it slow because .NET is just slow in this area, or am I doing
something wrong?
Here's my general workflow for displaying a SINGLE tiff. (to create 50
thumbnails, i just do some looping and adding to an ImageList control.)
Dim bmp As New Bitmap("c:\aaa\tiff\3soft-2-7-05.tif")
Dim bmp2 As New Bitmap(100, 150)
Dim g As Graphics = Graphics.FromImage(bmp2)
g.InterpolationMode =
Drawing.Drawing2D.InterpolationMode.HighQualityBic ubic
g.DrawImage(bmp, 0, 0, bmp2.Width, bmp2.Height)
picturebox1.image = bmp2
Originally I used the getthumbnailimage method of the Image object to
do this. That was about just as slow as the method above. But it
didn't allow me to change the interpolationmode.
Thanks for any help with this!
John