Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Animated gif and transparent background
Message
 
 
À
23/03/2010 07:17:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01456409
Message ID:
01456411
Vues:
94
Change
_SCREEN.imgLogo.BackStyle = 1
>
>I have problem in displaying an animated gif with transparent background, it looks like new frames are displayed before/without restoring the background first. It ends up like a stack of images all mess up on the screen. (See image#2)
>Without transparent background the animation gif works well. (See image#1)
>
>The codes that I use to display the image control (whose picture property is assigned the filespec of the gif files) are as below:
>
>
>IF TYPE('_SCREEN.imgLogo') <> 'O'
>	_SCREEN.AddObject('imgLogo','image')
>ENDIF
>_SCREEN.imgLogo.Picture = <gif filespec>
>_SCREEN.imgLogo.BackStyle = 0
>
>* Center the logo.
>_SCREEN.imgLogo.Top = (_SCREEN.Height-_SCREEN.imgLogo.Height)/2
>_SCREEN.imgLogo.Left = (_SCREEN.Width-_SCREEN.imgLogo.Width)/2
>
>_SCREEN.imgLogo.Visible = .T.
>
>
>Is there anything I have missed? How do I make the animated gif (with transparent background) displayed correctly?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform