TImageEnIO.LoadFromStreamZIP
Declaration
function TImageEnIO.LoadFromStreamZIP(Stream: TStream; FileIndex: Integer = -1; const Password: string = ''): Boolean;
Description
Loads a file from an archive stream into the attached
TImageEnView or
TIEBitmap 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).
Result will be false if the file is not a supported format or the
7z plug-in is not found (
Aborting will be true). Loading errors due to a file not being available will raise an exception.
Note:
◼Archive extraction requires the
7z plug-in
◼Use
ImageIndex to specify which page of the ZIP file to load
◼LoadFromStreamZIP does not reset the position of the stream, so you may need to first call Stream.Position := 0;
◼Read more about
ImageEn ZIP Support