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
 pagecount tiff
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

geert

Belgium
9 Posts

Posted - Dec 12 2012 :  01:57:31  Show Profile  Reply
Is there a way to get the exact amount of pages in a tiff file ????

How ? :-)

I don't get it , params.tiff_pagecount results in 0 allways

params.tiff_imagecount results in number bigger than number of pages.

xequte

38615 Posts

Posted - Dec 12 2012 :  02:59:49  Show Profile  Reply
Hi

It should not return 0 if you have loaded the images or used ParamsFromFile:

http://www.imageen.com/help/TImageEnIO.ParamsFromFile.html

Or you can just use EnumTIFFIm:

http://www.imageen.com/help/EnumTIFFIm.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Dec 12 2012 :  08:12:30  Show Profile  Reply
You can also use imageenio.IEGetFileFramesCount
function IEGetFileFramesCount(const FileName:WideString):integer;


Description

This is a generic way to get number of frames in a multipage file (GIF, TIFF, AVI, MPEG...) or a single page (JPEG...).

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: