PDA

Click to See Complete Forum and Search --> : Animated Gif?


Dim A
Feb 12th, 2001, 02:58 PM
I'm trying to make a screensaver based on an animated gif. I use bitblt to redraw the background on the maximized form, and I have each piece of the animated gif stored in an image control that is selectively visible or invisible.

No matter what I try, I can't get the transparency to work properly. Flashes of white will show up momentarily ruining the effect. Even the lockwindowdisplay tip did not help. Setting the form's clipcontrol property to false did improve it, but it's still a problem.

I've attempted having a picture box that just accepted a different image as it's source, but that didn't seem to work either.

Anyways, is there anyway to view an animated gif in a picture box? some sort of web-embeded format? That may fix this problem.

Any other techniques that may reduce this flicker?
Basically I want to have a animated sprite-like object move accrossed the form that is painted to look like the background.

- Dim A

Sastraxi
Feb 12th, 2001, 03:12 PM
A. If you are relying on the transparency of the animated gif to be transparent, DONT.

B. If you are blitting directly to the background, DONT.
First blit to an off-screen picbox the same size as the form (visible=false w/autoredraw=true) and then blit that to the form. It should stop the flickering.

C. If you are relying on the transparency of the gif and it works, check to make sure all of the backgrounds are PURE white. If they are off by 1 bit (255,254,255) instead of (255,255,255) then you will DIE! :)

Cheers