¿Como poner un Gif animado en Rad Studio XE?
Hola a todos, tengo una duda y es si puedo poner de algún modo un Gif animado en un programa por que he estado buscando y no hay manera. Aún así seguiré buscando por que he visto que hay un componente JEDI que si te deja poner. Gracias de antemano.
|
gif animado
Yo lo hago así:
Desde Delphi 2007 en adelante, coloco un Timage con el gif y luego el code: ...tambien podrias de esta manera controlar la animacion "AnimateLoop, AnimateSpeed...",transparencias del gif ...etc,etc. Saludos! :) |
Estimado pokexperto1:
Con este simple código a mi me funciona sin problemas. Lo colocas donde quieras que se inicie la animación.
Donde Image1 es un TImage y loader.gif es el gif animado que debes colocar en la carpeta del ejecutable. No tengo DelphiXE, pero en D2007 y XE3 anda de maravillas. Ojalá te sirva Saludos |
Radenf, así cargas la imagen gif en el Tpicture, pero sin animacion,
por defecto la propiedad animation está asignada como false..... :) |
Estimado Mav:
Delphi 2007 y XE3, que son los que yo uso, incluyen GifImage que permite la animación. Imagino que DelphiXE también la incluye. Puedes revisar estos links, donde se utiliza el método que he indicado: http://www.clubdelphi.com/foros/showthread.php?t=75261 http://www.clubdelphi.com/foros/show...ht=gif+animado PD: No encuentro la propiedad Animate en los TImage. Saludos |
GIFImg
....Delphi2007...en\\source\ GIFImg.pas y por lo tanto tambien en \\lib\GIFImg.dcu....
lo que se "une" a tu ejecutable: No hay animación.: ...en DelphiXE5: ...\\source\VCL\Vcl.Imaging.GIFImg.pas Saludos:):) |
.....
...otro fragmento de GIFIMg.pas, cambio la property Animate a true, para que se reproduzca la animacion, es lo que hago en la primera respuesta a este tema. Saludos:) |
La franja horaria es GMT +2. Ahora son las 04:22:16. |
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