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(); }
|