ImageEn, unit imageenio

TImageEnIO.Seek

TImageEnIO.Seek


Declaration


function Seek(Page : TIEIOSeekDestination; FileName : WideString = ''): Integer; overload;
function Seek(Page : TIEIOSeekDestination; Stream: TStream; FileFormat: TIOFileType = ioUnknown): Integer; overload;


Description


Load the specified page from the last loaded multipage file, including TIFF, GIF, AVI and other video types.
This method uses LoadFromFile to load the file (hence the file name must be provided).
Parameter Description
Page Page to load.
FileName Optional file name. If empty will use the last loaded file name.


Returns the loaded page index, or -1 if loading failed.

Note: You can abort loading by setting Aborting to true


Demo


  Demos\InputOutput\IEViewMulti\IEViewMulti.dpr



Example


// load first page
ImageEnView1.IO.Seek(ieioSeekFirst, 'multipage.tiff');

// load next page
ImageEnView1.IO.Seek(ieioSeekNext);