Results 1 to 2 of 2

Thread: Animated Gif?

  1. #1

    Thread Starter
    Addicted Member Dim A's Avatar
    Join Date
    Jul 2000
    Posts
    201
    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

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width