CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2009
    (Presently) Bahrah S.A.

    [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

    Re: Image Transitions

    Throught the use of double buffering...
    Picture1.Picture = LoadPicture("Drive:\Path\File.extension")
    Picture2.Picture = LoadPicture("Next Image to be displayin picture1")
    Then to change from one to the next
    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
    Sunny South Africa

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.