VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

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: 20:47:42 01/05/03 Sun
Author: Michel
Subject: Re: Erase page from multi pages
In reply to: Gurkan Karagoz 's message, "Re: Erase page from multi pages" on 16:42:57 12/29/02 Sun


Thanks Gurkan. Yes that is the approach. Here is some simplified untested code that may help others:

var
NewGraphic : TTiffGraphic;
Graphic : TTiffGraphic;
begin
NewGraphic := TTiffGraphic.Create;
Graphic := TTiffGraphic.Create;

for ImageNo := 1 to ImageCountFromFile(FileName) do
begin
Graphic.ImageToLoad := ImageNo;
Graphic.LoadFromFile(FileName);

{ skip the images you want to delete }

if ImageNo = 1 then
NewGraphic.SaveToFile(NewFileName)
else
NewGraphic.AppendToFile(NewfileName);

end;

DeleteFile(FileName);
RenameFile( NewFileName, FileName);

Graphic.Free;
NewGraphic.Free;
end;

Best regards,

Michel

>Hi,
>I think, you should create a new TIF file and insert
>all pages into the new file except the page you want
>to delete.
>
>
>>Hello,
>>I load multi pages tiff file.
>>
>>How can i delete one of the pages from multi pages
>>Tiff format ?
>>
>>thank u
>>Asi

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