Here is the fastest way. Loading the file on demand (threaded)...
procedure TForm1.Copy1Click(Sender: TObject);
{ Copy the contents of ImageEnView1 to ImageEnView2 }
var
i: Integer;
begin
Screen.Cursor := crHourGlass;
try
ImageEnMView2.Clear;
for i := 0 to ImageEnMView1.ImageCount - 1 do
begin
{ Add an image to ImageEnMView2 on demand }
ImageEnMView2.LoadFromFileOnDemand(ImageEnMView1.ImageFileName[i], true);
{ Set the filename of ImageEnMView2 }
ImageEnMView2.ImageFileName[i] := ImageEnMView1.ImageFileName[i];
{ Set the MIO.Params of ImageEnMView2 }
ImageEnMView2.MIO.Params[i].Assign(ImageEnMView1.MIO.Params[i]);
{ Set the ImageEnMView2 bottom text }
ImageEnMView2.ImageBottomText[i].Caption := ImageEnMView1.ImageBottomText
[i].Caption;
end;
{ Scroll ImageEnMView2 to beginning }
ImageEnMView2.DisplayImageAt(0, 0, 0);
finally
Screen.Cursor := crDefault;
end;
end;
William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html