TImageEnIO.LoadFromFileZIP
Declaration
function LoadFromFileZIP(const FileName: string; FileIndex: Integer = -1; const Password: string = ''): Boolean;
Description
Loads an image from a ZIP file into the attached
TImageEnView or
TIEBitmap using a plug-in.
If FileIndex = -1, then
ImageIndex will be used to specify which page of the ZIP file to load.
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-ins are available (
Aborting will be true). Loading errors due to a file not being available will raise an exception.
Note:
◼ZIP extraction requires the
7z plug-in from:
www.imageen.com/download/◼FileName can include the full path to a file within the zip (instead of specifying a file index), e.g. C:\Folder\MyZip.zip\Path\image.jpeg
◼Read more about
ImageEn ZIP Support// Load the first file in a zip and show buttons to allow navigation
ImageEnView1.ShowButtons := [ iebtPrevious, iebtNext ];
ImageEnView1.IO.LoadFromFileZIP( 'C:\Test.zip', 0 );
// Load a specific file within a zip
ImageEnView1.IO.LoadFromFileZIP( 'C:\Folder\MyZip.zip\Path\image.jpeg' );