bmp := TBitmap.Create;
bmp.LoadFromFile(ListView1.Items[0].SubItems[0]);
AVICreator := TAVICreator.Create(
Handle);
AVICreator.Filename := '
';
AVICreator.Width := bmp.Width;
AVICreator.Height := bmp.Height;
AVICreator.FPS := StrToInt(cbxFPS.Text);
AVICreator.ResRestriction := TResRestriction(cbxRestriction.ItemIndex);
AVICreator.CreateAVIFile;
// Selbst ohne diese Zeile kommt der Fehler
ProgressBar1.Max := ListView1.Items.Count - 1;
for i := 0
to ListView1.Items.Count - 1
do
begin
bmp.LoadFromFile(ListView1.Items[i].SubItems[0]);
Image1.Picture.Bitmap.Assign(bmp);
Image1.Refresh;
ProgressBar1.Position := i;
AVICreator.AddAVIFrame(bmp);
end;
bmp.free;
fn := AVICreator.Filename;
// Return the Filename selected of SaveDialog
AVICreator.CloseAVIFile;
AVICreator.free;