Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Animated gif and transparent background
Message
From
23/03/2010 07:17:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Animated gif and transparent background
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01456409
Message ID:
01456409
Views:
134
Hi,

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?
Next
Reply
Map
View

Click here to load this message in the networking platform