ImageEn, unit iexBitmaps



function IEGetFileFramesCount(const FileName: WideString): Integer;


A generic method to get the number of frames in a multi-page images and supported videos.
The following types are supported: GIF, TIFF, ICO, CUR, DCX, DICOM, HDP, HEIF, DDS, WEBP, PDF, AVI and other supported WIC, user and video formats, such as MPEG.
For single page types (such as JPEG) the result will be 1 if the file is valid.

Note: The file content is analyzed to determine the image type


n := IEGetFileFramesCount( 'C:\Image.gif' );

See Also

 Global Image Methods