|
-
Jan 2nd, 2011, 08:13 PM
#1
Re: Fade image in and out
 Originally Posted by LaVolpe
There is no such thing as control transparencies, not really. Fading can be done using a backbuffer to hold the original image (whether its an memory bitmap or hidden picturebox with AutoRedraw=True). Either way, you'd want to use AlphaBlend API. You're not going to be able to fade an image control
The idea is via use of a timer or a DoEvents loop
1) Clear area to be drawn
2) Use AlphaBlend to render image at a reduced opacity
3) Pause & repeat as needed
Try searching forum for: fade picture
Thanks, Fox. I would have liked to have done this about 5 to 10 years ago. I love fade-in and fade-out for images and so did my sponsors. I had no idea that it was available back then. Dang it. I missed the boat.
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
|