ImageEn, unit iexBitmaps

IEGetFileFramesCount


Declaration

function IEGetFileFramesCount(const FileName: WideString): Integer;


Description

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


Example

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


See Also

Global Image Methods