CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Location
    (Presently) Bahrah S.A.
    Posts
    24

    [RESOLVED] Image Transitions

    I have an application where I use a series of GIF images with transparent backgrounds as overlays for a primary image. When transitioning from one overlay image to the next there is a brief moment where the entire overlay image box is black. Is there a way to prevent this?

  2. #2
    Join Date
    Apr 2009
    Posts
    394

    Re: Image Transitions

    Throught the use of double buffering...
    Code:
    Picture1.Picture = LoadPicture("Drive:\Path\File.extension")
    Picture2.Picture = LoadPicture("Next Image to be displayin picture1")
    Then to change from one to the next
    Code:
    Picture1.Picture = Picture2.Picture
    Picture2.Picture = LoadPicture("Next Image to be displayin picture1")
    Picture2.visible = false
    both picture boxes .autoredraw = true


    Good Luck

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Image Transitions

    Maybe a bit late, but you can use the BitBlt API as well. this will make an in - memory copy of your next picture, to allow for smoothe transition.

Tags for this Thread

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

Featured