ImageEn, unit iemio

TImageEnMIO.LoadFromStreamZIP

TImageEnMIO.LoadFromStreamZIP


Declaration

function TImageEnMIO.LoadFromStreamZIP(Stream: TStream; const Password: string = ''): Boolean;


Description

Loads the content of an archive stream into the attached TImageEnMView or TIEMultiBitmap using a plug-in.
The following archive formats are supported: Zip, ZipX, EPub, 7z, BZip2, Cab, Rar, Tar, ISO, CHM and LZH.
If the file is encrypted you can specify the password (otherwise a password prompt will be displayed if AutoPromptForPassword is enabled).
The result will be false if an error is encountered, e.g. the file in the stream is not a supported format or the 7z plug-in is not found (Aborting will be true).



Note:
Archive extraction requires the 7z plug-in
LoadFromStreamZIP does not reset the position of the stream, so you may need to first call Stream.Position := 0;
Existing content is not cleared. Call Clear to remove existing content before loading
To abort while loading set Aborting to true
Read more about ImageEn ZIP Support