TImageEnMIO.LoadFromFileZIP
Declaration
function LoadFromFileZIP(const FileName: string; const Password: string = ''): Boolean;
Description
Loads the content of a ZIP file into the attached
TImageEnMView or
TIEMultiBitmap using a plug-in.
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 ZIP format or no ZIP plug-in is available (
Aborting will be true). Loading errors due to a file not being available will raise an exception.
LoadFromFileZIP loads the entire content of the zip immediately which can be slow if you are loading full size images (
StoreType=ietNormal). For more control you are generally better to use
FillFromZip which provides many options, including support for folders, dynamic loading and filtering.
The following properties will also be read from the zip file:
◼ImageCreateDate◼ImageEditDate◼ImageFileSize◼ImageTag (File index)
Note:
◼ZIP extraction requires the
7z plug-in from:
www.imageen.com/download/◼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// Show all files within a zip file
ImageEnMView1.Clear;
ImageEnMView1.MIO.LoadFromFileZIP('C:\test.zip');