Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4]5678910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:43:22 02/14/03 Fri
Author: Michel
Subject: Re: Speeding Up My Apps
In reply to: Dave Bracken 's message, "Speeding Up My Apps" on 07:50:14 02/14/03 Fri

Hi Dave,

The main issue you are having is using LoadFromFile(..., 0). This loads all the pages in memory, which is ok for small multipage files.

For match processing, I would use a TTiffGraphic directly, and not the TImageScrollBox as it takes more resources.

I would create a TFileStream on your tif file, then use TTiffGraphic.GetImageCount to get the number of images. Then use the ImageToLoad property and LoadFromStream method, and only load one image at a time. In your loop then just call TiffGraphic.SaveToFile for each image.

This should make things much faster.

Best regards,


>Hello! I wrote an app that converts multi-page tiffs
>to single-page tiffs. It works great on small tiff
>file sizes. But i have some files that are quite
>large, and it seems to slow down almost to the point
>of being useless. I was wondering if you could tell me
>of a way to speed it up. The code is written in the
>following manner:
>I load the tif into the imagescrollbox using the:
>ImageScrollBox1.LoadFromFile('MyTif.tif', 0);
>The scrollbox has been set to invisible, so the
>display of the images won't slow it down. Then i loop
>through the images using the command:
>ImageScrollBox1.CurrentFrame :=
>ImageScrollBox.CurrentFrame + 1;
>At each frame i save out the image using:
>This works great for compressed tifs of smaller size,
>but we have a client whose files must be uncompressed
>because a 350 page tif file is turning out to be
>approximately 50 mb.
>These files slow down after the first 50 pages or so,
>and continue to get slower with each additional page.
>I desperately need to speed this process up, any
>Any help you can give at all would be greatly
>Thank you in advance,
>Dave Bracken

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.