ImageEn, unit imageenio

TImageEnIO.LoadFromMediaFile

TImageEnIO.LoadFromMediaFile


Declaration

function LoadFromMediaFile(FrameIndex: Integer): Boolean;


Description

Loads the specified frame from a media file that was opened using OpenMediaFile.

The first frame has index 0.


Example

// Save frame 10 as 'frame10.jpg'
ImageEnView1.IO.OpenMediaFile('C:\video.mpeg');
ImageEnView1.IO.LoadFromMediaFile(10);
ImageEnView1.IO.SaveToFile('D:\frame10.jpg');
ImageEnView1.IO.CloseMediaFile;