Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   animación Delphi (https://www.clubdelphi.com/foros/showthread.php?t=35116)

anto1178 31-08-2006 21:44:25

animación Delphi
 
hola! tengo un video (.wmv) y un par de imagenes y quisiera utilizar parte del video y las imagenes para hacer un splash.
me podrían explicar si tienen alguna idea de como hacerlo ?? porque he bajado distintos componentes pero no entiendo nada. si se puede hacer con los que trae delphi mejor, sino expliquenme.
Muchas gracias!!

delphi.com.ar 31-08-2006 23:17:24

Por una cuestión de practicidad, te recomendaría convertir tu video en un AVI sin codecs extraños, que no puedan existir en la PC donde lo vas a distribuír, y utilizar un simple TAnimate. (Si te fijas en mi página, existe un ejemplo de como incluír el video dentro del EXE)
Pero si es un WMV:
Código Delphi [-]
var
  Animate1: TAnimate;
  MediaPlayer1: TMediaPlayer;
begin
  Animate1 := TAnimate.Create(Self);
  MediaPlayer1 := TMediaPlayer.Create(Self);
  with Animate1 do
  begin
    Parent := Self;
    Left := 8;
    Top := 12;
    Width := 245;
    Height := 213;
  end;
  with MediaPlayer1 do
  begin
    Parent := Self;
    Left := 4;
    Top := 240;
    Width := 325;
    Height := 45;
    Display := Animate1;
    FileName := 'c:\BatidoraLoca.wmv';
    Open;
    Play;
  end;


La franja horaria es GMT +2. Ahora son las 18:53:55.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi