ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Split TIFF page into parts
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sidney Egnew

USA
55 Posts

Posted - Sep 01 2020 :  07:56:33  Show Profile  Reply
Hello:

I have multi-page TIFF files. Each page is formatted the same with a header and six sections containing data. I want to split each page into its component pieces and recombine for data entry. All sections are above one another on a landscape form.

I am considering these approaches:

1) Separate each page into sections and write each section to new single-page TIFF files.

2) Separate each page into sections and combine the header and individual entry into new single-page TIFF files.

3) Separate each page into sections and display the appropriate sections to the data entry operator without creating new files.

Each page is 2500 wide and 3300 high at orientation 1.

Questions:

A) For solution 3, I would simply need to present the header and each individual entry to the data entry operator. I can easily access the individual pages using a TIETIFFHandler and load pages into a memory stream to display using a TImageEnView. I can calculate where the header and individual entry sections are on the page.

How can I split the page into separate images for displaying the header and a particular entry?

B) For solutions 1 and 2:

How can I separate the header and individual entries?

How can I recombine and create new single page tiff files?

xequte

38616 Posts

Posted - Sep 02 2020 :  02:20:26  Show Profile  Reply
Hi

If you create a new TIEBitmap of an appropriate size, you can easily copy content to it from another image (and then write it to file). Please see the example at:

https://www.imageen.com/help/TIEBitmap.CopyRectTo.html

In terms of accessing each page of your TIFF file, you would either use a TIEBitmap, setting the appopriate ImageIndex before reading the TIFF file, or use a TIEMultiBitmap and load the while TIFF file and access individual pages in memory.

See:
https://www.imageen.com/help/TIOParams.ImageIndex.html
https://www.imageen.com/help/TIEMultiBitmap.GetTIEBitmap.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: