-
July 12th, 2009, 11:43 PM
#1
[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?
-
July 13th, 2009, 01:40 AM
#2
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
-
July 13th, 2009, 08:16 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|