ImageEn, unit imageenio

TImageEnIO.OpenAVIFile

TImageEnIO.OpenAVIFile


Declaration


function OpenAVIFile(const FileName: WideString): Integer;


Description


Opens an AVI file without reading any frames. The result is the number of frames contained in the AVI.


Example


// Save the first AVI frame to 'frame1.jpg', second frame to 'frame2.jpg'
ImageEnView1.IO.OpenAVIFile( 'C:\film.avi' );

ImageEnView1.IO.LoadFromAVI( 0 );
ImageEnView1.IO.SaveToFile('D:\frame1.jpg');

ImageEnView1.IO.LoadFromAVI( 1 );
ImageEnView1.IO.SaveToFile('D:\frame2.jpg');
...
ImageEnView1.IO.CloseAVIFile;


See Also


- CloseAVIFile
- LoadFromAVI
- IsOpenAVI