VoyForums

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1234[5]678910 ]


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

Date Posted: 07:02:26 08/12/02 Mon
Author: Michel
Subject: Re: Manipulating Multipage Tiffs in streams
In reply to: Gurkan Karagoz 's message, "Re: Manipulating Multipage Tiffs in streams" on 06:08:32 08/10/02 Sat


Hi Gurkan,

The key is to make sure you manipulate the images before saving them in the tiff file. Keep 6 pages in memory is not a problem. You can keep them in individual TDibGraphic objects, in a TList, in TMemoryStream's, etc...

Best regards,

Michel

>I also need the same thing but for in memory frames.
>For a project, customer scans not more than 6 pages,
>some pages need to be rotated 90 deg. left or right.
>That's why I always load all the images to memory.
>Is it possible doing permanent transformations for in
>memory multiple images?
>
>>
>>Hi David,
>>
>>If you need to change an image within an existing
>>multipage file, unforntunately you need to create a
>>new file and copy the pages back to the new file.
>>
>>Your approach is good, but you could use a
>>TTiffGraphic directly instead of a TImageScrollBox.
>>Look up TFileStream in the Delphi help and the
>>TTiffGraphic.AppendToStream method in the Envision
>>help file. If you tiff file is not too large (a few
>>megabytes) you may want to use a TMemoryStream to
>>speed things up.
>>
>>Best regards,
>>
>>Michel
>>
>>>I need sample code on how to use streams with
>>>envision. Here is the problem:
>>>I need to be able to rotate page three, then save the
>>>entire file with the changes to number three, without
>>>appending the new version of three to the end of the
>>>file. The pages must stay in order, and the old
>>>version of page three is replaced with the new
>>version.
>>>I have been able to achieve this through the
>>>imagescrollbox control, by assigning page three to a
>>>second(hidden) imagescrollbox control, and then
>>>looping through the original appending the images
>till
>>>i hit the one i have changed, and then appending the
>>>changed image from the second control, and continuing
>>>on through the original. this works fine unless the
>>>file is large, then it takes a long time to loop
>>>through the entire file.
>>>I thought maybe doing it with streams might speed up
>>>the process, but am unsure how to do it.(I have not
>>>used streams very much at all). Any help or example
>>>code you could give me would be helpful, the demo
>>>project that came with it did not help me on this
>>>matter.
>>>
>>>Thank you in advance for any help you can give.
>>>David L. Bracken

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


Replies:


[ 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.