Fórum Imagnes Som #227113
20/04/2004
0
Na qula consistiria nas trcas de imagens durante a reprodução da música, fazendo uma espécie de filme...
Obrigado pela atenção
Salvati
Curtir tópico
+ 0Posts
20/04/2004
Salvati
o código segue abaixo:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
timer1.Interval:= 100;
Image1.Picture.LoadFromFile(´C:\Imagem\imagem´+FormatFloat(´000´,contImg)+´.jpg´);
Image1.Picture.LoadFromFile(´C:\Imagem´+FormatFloat(´000´,contImg)+´.bmp´);
Inc(contImg);
if contImg=4 then
contImg:=1;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
contImg:=1;
SndPlaySound(´C:\pesca.wav´, SND_ASYNC or SND_LOOP);
SndPlaySound(´C:\pesca1.mp3´, SND_ASYNC);
mediaplayer1.FileName:= ´c:\pesca1.mp3´;
mediaplayer1.Open;
timer1.Enabled:= true;
mediaplayer1.Play;
end;
Obrigado pela atenção
Gostei + 0
20/04/2004
Salvati
o código segue abaixo:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
timer1.Interval:= 100;
Image1.Picture.LoadFromFile(´C:\Imagem´+FormatFloat(´000´,contImg)+´.bmp´);
Inc(contImg);
if contImg=4 then
contImg:=1;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
contImg:=1;
SndPlaySound(´C:\pesca1.mp3´, SND_ASYNC);
mediaplayer1.FileName:= ´c:\pesca1.mp3´;
mediaplayer1.Open;
timer1.Enabled:= true;
mediaplayer1.Play;
end;
Obrigado pela atenção
Gostei + 0
22/04/2004
Salvati
Gostei + 0