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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Split TIFF page into parts

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Sidney Egnew Posted - Sep 01 2020 : 07:56:33
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?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 02 2020 : 02:20:26
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