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
 [IEvolution] How to append TIFF pages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

newinf

12 Posts

Posted - Jul 13 2011 :  09:43:33  Show Profile  Reply
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);
}

fab

1310 Posts

Posted - Jul 13 2011 :  12:33:10  Show Profile  Reply
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();
}

Go to Top of Page

newinf

12 Posts

Posted - Jul 14 2011 :  00:00:02  Show Profile  Reply
Thanks, that's right!!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: