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
 [IEvolution] How to append TIFF pages

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
newinf Posted - Jul 13 2011 : 09:43:33
Hi,

I need create an empty multipage TIFF and append some pages (images) which is situated on separated TIFF files. (Each TIFF file has only one page).

What is the best method to do this?

I tried this code but i have some memory problems...

IEImage imagen = new IEImage(_dirTemporal + "Pag_" + (_totalPags - 1) + ".tif");
imagen.SaveImage(temp);

for (int i = _totalPags - 2; i >= 0; i--)
{
IEImage otra = new IEImage(_dirTemporal + "Pag_" + i + ".tif");
imagen.IOParams.TIFF_ImageIndex = 0;
otra.InsertToTIFF(temp);
}

2   L A T E S T    R E P L I E S    (Newest First)
newinf Posted - Jul 14 2011 : 00:00:02
Thanks, that's right!!
fab Posted - Jul 13 2011 : 12:33:10
Call imagen.dispose() when you have finished with the object. For example:

IEImage imagen = new IEImage(_dirTemporal + "Pag_" + (_totalPags - 1) + ".tif");
imagen.SaveImage(temp);
imageen.dispose();

for (int i = _totalPags - 2; i >= 0; i--)
{
IEImage otra = new IEImage(_dirTemporal + "Pag_" + i + ".tif");
otra.IOParams.TIFF_ImageIndex = i;
otra.InsertToTIFF(temp);
otra.dispose();
}