LEADTOOLS Support
General
General Questions
Re: Sort multi-pages Tiff File in C# or vb
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, December 10, 2009 5:59:54 PM(UTC)
Groups: Registered
Posts: 3
Such as the title, I want an example of hope that I can get help, let me make better use of leadtools
#2
Posted
:
Thursday, December 10, 2009 11:16:34 PM(UTC)
Groups: Registered
Posts: 3
Is no one wants to help me?[:(]
#3
Posted
:
Sunday, December 13, 2009 12:28:25 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
How is your user interface going to be for this task? Are you going to load one page at a time to determine the correct order, or will you be displaying more than one page together on the screen?
If you're displaying multiple pages, which LEAD controls exactly are you using to display them?
Also, is your final goal to change the page order in the TIFF file on disk? Or do you want to change the order of displayed pages on screen? Or both?
Please provide us with a description of what you need that's as detailed as possible.
To copy TIFF pages quickly without loading them into memory, you can use the
RasterCodecs.CompactFile method.
#4
Posted
:
Sunday, December 13, 2009 6:48:25 PM(UTC)
Groups: Registered
Posts: 3
First thanks you to pay attention to me, Is the screen and the disk have changed . If you can help me or give me a source, very thanks.
#5
Posted
:
Monday, December 14, 2009 5:01:54 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You can use the RasterCodecs.DeletePage() method to remove a page from the disk file and RasterCodecs.Save() method to save a page in its place using the Insert flag. However, this approach has 2 problem:
1. It will de-compress and re-compress the TIFF pages, which might affect speed and quality.
2. It will increase the TIFF file size with every swap operation. The reason is that the Delete TIFF page operation does not decrease the file size. It will only mark the page as deleted but its allocated size on disk will remain the same. When you insert the same page somewhere else, you increase the size.
The CompactFile method allows you to move TIFF pages without re-compressing them and it keeps the TIFF file compacted without extra lost space. Please read about it in the help topic "CompactFile(String,String,Int32) Method" in our .NET help file.
LEADTOOLS Support
General
General Questions
Re: Sort multi-pages Tiff File in C# or vb
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.