I've tried similar code to this, but it isn't doing what I expected.
with ImageEnMViewMain do
begin
// Save snapshot of current thumbnails
if Length(CurrentDirectory) > 0 then
try
SaveSnapshot(CurrentDirectory + '\SNAPSHOT.FILE');
except end;
Clear;
// Load thumbnails snapshot from new directory
if FileExists(NewDirectory + '\SNAPSHOT.FILE') then
begin
LoadSnapshot(NewDirectory + '\SNAPSHOT.FILE');
Update;
end;
// Reload thumbnails from images (in case directory contents has changed)
try
LockPaint;
Clear;
FillFromDirectory(NewDirectory);
finally
UnLockPaint;
Paint;
end;
end;
Does SaveSnapshot just save thumbnails from images containing embedded thumbnails? There is very little information in the help file on how to use this.
regards
Patrick