I thought from reading the help file that I could use TImageEnIO.ParamsFromFile to fetch the page count in a tiff file without having to open it, but it returns 0. What am I doing wrong?
var ImageInfo: TImageEnIO; iPageCnt: SmallInt; begin TRY //* Fetch the page count for this tiff without actually loading the file ImageInfo := TImageEnIO.Create(Self); ImageInfo.ParamsFromFile(FileName); iPageCnt := ImageInfo.Params.TIFF_PageCount;